Below you’ll find a snapshot of the verification process to access the page “https://cosy-climbing.net/downloads.php”. Is it possible to bypass it programataically using Python?
snapshot of cloudflare verification process
Here is an attempt to solve the problem using cloudscraper, however it does not pass.
import requests
from bs4 import BeautifulSoup
import cloudscraper
def url_to_soup(url):
sess = requests.session();
scraper = cloudscraper.create_scraper(browser={'custom': 'ScraperBot/1.0',}, sess=sess)
r = scraper.get(url)
return BeautifulSoup(r.text, "html.parser")
def main():
t = url_to_soup("https://cosy-climbing.net/downloads.php")
print(t.prettify())
if __name__ == "__main__":
main()
On top of cloudscraper I’ve also tried cfscrape and undetected_chromedriver with no success.
New contributor
KSI is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.