mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[vk] Use _form_hidden_inputs
when logging in
This commit is contained in:
parent
a0aab26a41
commit
a5839317aa
1 changed files with 1 additions and 3 deletions
|
@ -154,9 +154,7 @@ def _login(self):
|
||||||
login_page = self._download_webpage(
|
login_page = self._download_webpage(
|
||||||
'https://vk.com', None, 'Downloading login page')
|
'https://vk.com', None, 'Downloading login page')
|
||||||
|
|
||||||
login_form = dict(re.findall(
|
login_form = self._form_hidden_inputs(login_page)
|
||||||
r'<input\s+type="hidden"\s+name="([^"]+)"\s+(?:id="[^"]+"\s+)?value="([^"]*)"',
|
|
||||||
login_page))
|
|
||||||
|
|
||||||
login_form.update({
|
login_form.update({
|
||||||
'email': username.encode('cp1251'),
|
'email': username.encode('cp1251'),
|
||||||
|
|
Loading…
Reference in a new issue