Fix Wstream
This commit is contained in:
+2
-3
@@ -58,11 +58,10 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
|||||||
video_urls = []
|
video_urls = []
|
||||||
global data, real_url
|
global data, real_url
|
||||||
|
|
||||||
sitekey = scrapertools.find_single_match(data, """data-sitekey=['"] *([^"']+)""")
|
sitekey = scrapertools.find_multiple_matches(data, """data-sitekey=['"] *([^"']+)""")[-1]
|
||||||
captcha = platformtools.show_recaptcha(sitekey, page_url) if sitekey else ''
|
captcha = platformtools.show_recaptcha(sitekey, page_url) if sitekey else ''
|
||||||
|
|
||||||
possibleParam = scrapertools.find_multiple_matches(data,
|
possibleParam = scrapertools.find_multiple_matches(data,r"""<input.*?(?:name=["']([^'"]+).*?value=["']([^'"]*)['"]>|>)""")
|
||||||
r"""<input.*?(?:name=["']([^'"]+).*?value=["']([^'"]*)['"]>|>)""")
|
|
||||||
if possibleParam:
|
if possibleParam:
|
||||||
post = {param[0]: param[1] for param in possibleParam if param[0]}
|
post = {param[0]: param[1] for param in possibleParam if param[0]}
|
||||||
if captcha: post['g-recaptcha-response'] = captcha
|
if captcha: post['g-recaptcha-response'] = captcha
|
||||||
|
|||||||
Reference in New Issue
Block a user