+import urllib.parse
+
from .common import InfoExtractor
-from ..compat import compat_urlparse
from ..utils import (
ExtractorError,
clean_html,
'thumbnail': r're:^https?://.*\.(?:png|jpg)$',
'upload_date': '20090901',
'view_count': int,
- }
+ },
}, {
'note': 'There are break lines in description, mandating (?s) flag',
'url': 'https://piapro.jp/t/9cSd',
'view_count': int,
'thumbnail': r're:^https?://.*\.(?:png|jpg)$',
'uploader_id': 'cyankino',
- }
+ },
}, {
'url': 'https://piapro.jp/content/hcw0z3a169wtemz6',
- 'only_matching': True
+ 'only_matching': True,
}, {
'url': 'https://piapro.jp/t/-SO-',
- 'only_matching': True
+ 'only_matching': True,
}]
_login_status = False
'_username': username,
'_password': password,
'_remember_me': 'on',
- 'login': 'ログイン'
+ 'login': 'ログイン',
}
self._request_webpage('https://piapro.jp/login/', None)
urlh = self._request_webpage(
if urlh is False:
login_ok = False
else:
- parts = compat_urlparse.urlparse(urlh.url)
+ parts = urllib.parse.urlparse(urlh.url)
if parts.path != '/':
login_ok = False
if not login_ok: