I wish to get data from https://www.example.com using BeautifulSoup (BS4) as
req = requests.get('https://www.example.com/')
soup = BeautifulSoup(req.text, "lxml")
cDF = soup.find('div',attrs={"id" : "nav-tabContent"}).find(
'table',attrs={"id" : "main_table_countries_today"}).find_all('tr')
I find an error
cDF = soup.find('div',attrs={"id" : "nav-tabContent"}).find(
AttributeError: 'NoneType' object has no attribute 'find'
When I debugged soup, I find that it is actually showing that it is stuck by the recaptcha page of Cloudflare.
I checked other similar questions while I found most are with zero answers. One has been answered (2 replies) to check for a particular bot test which is not relevant to my query. Therefore, I believe that this question must not be marked as repeat question.
Please tell me how may I get data for my analysis bypassing recaptcha. By the way, I use privacypass in google chrome in ubuntu. Thanks.