resolverdns senza cloudscrape + fix findhost eurostreaming

This commit is contained in:
marco
2020-01-05 23:13:55 +01:00
parent e4762e882b
commit 4212bef5ff
5 changed files with 32 additions and 28 deletions
+1 -3
View File
@@ -14,12 +14,10 @@
import re
from core import scrapertools, httptools, support
from core.item import Item
from platformcode import config
#impostati dinamicamente da findhost()
def findhost():
permUrl = httptools.downloadpage('https://eurostreaming.link/', follow_redirects=False).headers
host = 'https://www.'+permUrl['location'].replace('https://www.google.it/search?q=site:', '')
host = 'https://'+permUrl['location'].replace('https://www.google.it/search?q=site:', '')
return host
host = support.config.get_channel_url(findhost)