-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No display in Ubuntu #5
Comments
Do you have Chrome or Chromium based browser on your machine? |
Yes, I have chrome, and chromium both. Also, I got this error:1、该端口为浏览器 |
Try this instead of from CloudflareBypasser import CloudflareBypasser
from DrissionPage import ChromiumPage
import time
driver = ChromiumPage( )
driver.get('https://nopecha.com/demo/cloudflare')
# Where the bypass starts
cf_bypasser = CloudflareBypasser(driver)
cf_bypasser.bypass()
print("Enjoy the content!")
#print(driver.html) # You can extract the content of the page.
print("Title of the page: ", driver.title)
time.sleep(5)
driver.quit() |
Thanks, but the same situation and error. |
Could you share your console output? I need to see it. |
without sudo: cd /home/.../Desktop/test/CloudflareBypassForScraping-main ; /usr/bin/env /bin/python /home/.../.vscode/extensions/ms-python.debugpy-2024.6.0-linux-x64/bundled/libs/debugpy/adapter/../../debugpy/launcher 49459 -- /home/.../Desktop/test/CloudflareBypassForScraping-main/test.py |
This error is probably related to DrissionPage because you can't initiate a Chromium page at all. |
I try the test in ubuntu but no windows is opening.
The text was updated successfully, but these errors were encountered: