Reputation:
It returns none for the 5+ pages even the class exists there.
The URL Which works fine:
But it doesn't work for 5-6 pages
My Code So far:
response = requests.get(url)
soup = BeautifulSoup(response.content,'html.parser')
app = soup.find_all('li',class_ = 's-item')
for x in app:
print(x)
Printing app > Prints empty LIST: []
I have checked it manually, The class exists on all the pages.
Upvotes: 0
Views: 31
Reputation: 110
Your bot may be detected and the 5th page often occurs to be a captcha or pop-up window.
Try to use another library like Selenium to witness your bit behavior in browser, or screenshot the window at every page query
Upvotes: 0