mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-27 21:46:54 +01:00
[extractor/common] Extract submit inputs
This commit is contained in:
parent
ad72917274
commit
be0e5dbd83
@ -733,7 +733,7 @@ class InfoExtractor(object):
|
|||||||
def _hidden_inputs(html):
|
def _hidden_inputs(html):
|
||||||
hidden_inputs = {}
|
hidden_inputs = {}
|
||||||
for input in re.findall(r'<input([^>]+)>', html):
|
for input in re.findall(r'<input([^>]+)>', html):
|
||||||
if not re.search(r'type=(["\'])hidden\1', input):
|
if not re.search(r'type=(["\'])(?:hidden|submit)\1', input):
|
||||||
continue
|
continue
|
||||||
name = re.search(r'name=(["\'])(?P<value>.+?)\1', input)
|
name = re.search(r'name=(["\'])(?P<value>.+?)\1', input)
|
||||||
if not name:
|
if not name:
|
||||||
|
Loading…
Reference in New Issue
Block a user