Example #1
0
def open_url(url):
        try:
            net.set_cookies(cookie_file)
            link = cleanHex(net.http_GET(url).content)
            link = link.replace('\n','').replace('  ','')
            return link
        except:
          try:
            cf.solve(url,cookie_file,wait=True)
            net.set_cookies(cookie_file)
            link = cleanHex(net.http_GET(url).content)
            link = link.replace('\n','').replace('  ','')
            return link
          except:
            cf.solve(url,cookie_file,wait=True)
            net.set_cookies(cookie_file)
            link = cleanHex(net.http_GET(url).content)
            link = link.replace('\n','').replace('  ','')
            return link  
Example #2
0
def open_url(url):
    try:
        net.set_cookies(cookie_file)
        link = cleanHex(net.http_GET(url).content)
        link = link.replace('\n', '').replace('  ', '')
        return link
    except:
        try:
            cf.solve(url, cookie_file, wait=True)
            net.set_cookies(cookie_file)
            link = cleanHex(net.http_GET(url).content)
            link = link.replace('\n', '').replace('  ', '')
            return link
        except:
            cf.solve(url, cookie_file, wait=True)
            net.set_cookies(cookie_file)
            link = cleanHex(net.http_GET(url).content)
            link = link.replace('\n', '').replace('  ', '')
            return link
Example #3
0
def open_url(url):
	try:
	    net.set_cookies(cookie_file)
	    link = net.http_GET(url).content
	    link=cleanHex(link)
	    return link
	except:
	  try:
	    cf.solve(url,cookie_file,wait=True)
	    net.set_cookies(cookie_file)
	    link = net.http_GET(url).content
	    link=cleanHex(link)
	    return link
	  except:
	    cf.solve(url,cookie_file,wait=True)
	    net.set_cookies(cookie_file)
	    link = net.http_GET(url).content
	    link=cleanHex(link)
	    return link