Closed zhajingwen closed 1 year ago
cf challenge fail
and this log always appear you kan try it
I just ran the example and it works. Can you provide the website?
you can try this website https://dexfilter.com/
you will get bellow
I just ran the example and it works. Can you provide the website?
you can try this website https://dexfilter.com/
you will get bellow
and this is my core code:
` with Display(): async with async_playwright() as p: browser = await p.chromium.launch(**launch_data) page = await browser.new_page() page.on('response', self.on_response) await async_stealth(page, pure=True) await page.goto(self.url) success = await async_cf_retry(page)
# if not success:
# await browser.close()
# print({"success": success, "msg": "cf challenge fail"})
time.sleep(5)
await page.screenshot(path='test.png')
time.sleep(3)
await browser.close()`
with Display():
async with async_playwright() as p:
browser = await p.chromium.launch(**launch_data)
page = await browser.new_page()
page.on('response', self.on_response)
await async_stealth(page, pure=True)
await page.goto(self.url)
success = await async_cf_retry(page)
# success = await async_cf_retry(page)
# if not success:
# await browser.close()
# print({"success": success, "msg": "cf challenge fail"})
time.sleep(5)
await page.screenshot(path='test.png')
time.sleep(3)
await browser.close()
My normal visit to this website did not trigger Cloudflare. Is it a proxy issue?
not use proxy, l run it on my ECS(cloud host) in hongkong; but it can't work; l don't know why !
I use Hong Kong proxy to access and did not trigger Cloudflare. Maybe you should use proxy access, your server is blocked by Cloudflare.
I use Hong Kong proxy to access and did not trigger Cloudflare. Maybe you should use proxy access, your server is blocked by Cloudflare.
l have 100 proxy ips but all failed, l guess they are all blocked , and my Cloud Host also be blocked , l'll try buy better proxy ip ,forexample 4G proxies to have a try
Please provide more info.