test no findhost()

This commit is contained in:
marco
2019-12-06 23:44:03 +01:00
parent bf9471809e
commit 68229bef38
7 changed files with 53 additions and 46 deletions
+6 -5
View File
@@ -17,14 +17,15 @@ from core.item import Item
from platformcode import config
#impostati dinamicamente da findhost()
host = ""
host = "https://eurostreaming.pink"
headers = ""
def findhost():
global host, headers
permUrl = httptools.downloadpage('https://eurostreaming.link/', follow_redirects=False).headers
host = 'https://www.'+permUrl['location'].replace('https://www.google.it/search?q=site:', '')
headers = [['Referer', host]]
pass
# global host, headers
# permUrl = httptools.downloadpage('https://eurostreaming.link/', follow_redirects=False).headers
# host = 'https://www.'+permUrl['location'].replace('https://www.google.it/search?q=site:', '')
# headers = [['Referer', host]]