fix cb01
This commit is contained in:
@@ -12,15 +12,15 @@ from platformcode import logger, config
|
|||||||
|
|
||||||
|
|
||||||
def findhost():
|
def findhost():
|
||||||
page = httptools.downloadpage('https://cb01-nuovo-indirizzo.info/', follow_redirects=False)
|
page = httptools.downloadpage('https://cb01.uno/')
|
||||||
permUrl = page.headers
|
# permUrl = page.headers
|
||||||
if 'location' in permUrl:
|
# if 'location' in permUrl:
|
||||||
if 'google' in permUrl['location']:
|
# if 'google' in permUrl['location']:
|
||||||
host = permUrl['location'].replace('https://www.google.it/search?q=site:', '')
|
# host = permUrl['location'].replace('https://www.google.it/search?q=site:', '')
|
||||||
else:
|
# else:
|
||||||
host = permUrl['location']
|
# host = permUrl['location']
|
||||||
else:
|
# else:
|
||||||
host = support.match(page.data, patron=r'<a href="([^"]+)" title="nuovo indirizzo cb01').match
|
host = support.match(page.data, patron=r'<a href="([^"]+)').match
|
||||||
return host
|
return host
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user