sarperavci / CloudflareBypassForScraping

A cloudflare verification bypass script for webscraping
343 stars 61 forks source link

Response text in example cf #1

Closed reactiver001 closed 11 months ago

reactiver001 commented 11 months ago

Hello , the first congrats for your example ,

Its possible help me to print response in your example , when challenge is solve ? i try find in guide but dont find nothing for this . Thanks one more time

sarperavci commented 11 months ago

What do you mean by "response"

sarperavci commented 11 months ago

you can print the content of the page like this:

print(driver.html)
print(driver.title)
reactiver001 commented 11 months ago

Perfect , understand now , possible headless to ? because i try this :

for argument in arguments:
    options.set_argument(argument)
    headless=True

But dont work , you use discord or other plataform ? thanks

sarperavci commented 11 months ago

You can add in arguments as an option "-headless=new" . for example: ` arguments = [ "-no-first-run", "-force-color-profile=srgb", "-headless=new" ]

for argument in arguments:
    options.set_argument(argument)`

driver = ChromiumPage(addr_driver_opts=options)

sarperavci commented 11 months ago

you can contact me via https://twitter.com/sarperavci

reactiver001 commented 11 months ago

Fixed =)