niente captcha per akvideo
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
"filmigratis": "https://filmigratis.org",
|
||||
"filmsenzalimiticc": "https://www.filmsenzalimiti.tech",
|
||||
"filmstreaming01": "https://filmstreaming01.com",
|
||||
"guardarefilm": "https://www.guardarefilm.red",
|
||||
"guardaserie_stream": "https://guardaserie.store",
|
||||
"guardaserieclick": "https://www.guardaserie.media",
|
||||
"ilgeniodellostreaming": "https://ilgeniodellostreaming.ch",
|
||||
|
||||
@@ -6,14 +6,12 @@ import urllib, re
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger, config, platformtools
|
||||
from core.support import dbg
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
# page_url = re.sub('akvideo.stream/(?:video/|video\\.php\\?file_code=)?(?:embed-)?([a-zA-Z0-9]+)','akvideo.stream/video/\\1',page_url)
|
||||
global data
|
||||
# dbg()
|
||||
page = httptools.downloadpage(page_url)
|
||||
logger.info(page.data)
|
||||
if 'embed_ak.php' in page_url:
|
||||
@@ -37,18 +35,14 @@ def test_video_exists(page_url):
|
||||
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
||||
logger.info(" url=" + page_url)
|
||||
video_urls = []
|
||||
# dbg()
|
||||
|
||||
global data
|
||||
# logger.info('PAGE DATA' + data)
|
||||
# sitekey = scrapertools.find_single_match(data, 'data-sitekey="([^"]+)')
|
||||
sitekey = '6LeNU5IUAAAAAPNs_w-s8Rc-X2C2SPE3UW8lkkjW'
|
||||
# from core import support
|
||||
# support.dbg()
|
||||
captcha = platformtools.show_recaptcha(sitekey, page_url) if sitekey else ''
|
||||
|
||||
if captcha:
|
||||
data = httptools.downloadpage(page_url, post={'g-recaptcha-response': captcha}).data
|
||||
# captcha = platformtools.show_recaptcha(sitekey, page_url) if sitekey else ''
|
||||
#
|
||||
# if captcha:
|
||||
# data = httptools.downloadpage(page_url, post={'g-recaptcha-response': captcha}).data
|
||||
vres = scrapertools.find_multiple_matches(data, 'nowrap[^>]+>([^,]+)')
|
||||
if not vres: vres = scrapertools.find_multiple_matches(data, '<td>(\d+x\d+)')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user