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
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
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