Python Scraping Go To Next Page Using Beautifulsoup August 30, 2023 Post a Comment This is my scraping code: import requests from bs4 import BeautifulSoup as soup def get_emails(_links:list): for i in range(len(_links)): new_d = soup(requests.get(_links[i]).textSolution 1: You put the 'soup' in a variable called 'd'. So replace the following line:next_page=soup.find('div', {'class': 'paging'}, 'weiter') CopyWith this:next_page = d.find('div', {'class': 'paging'}, 'weiter') Copy Share Post a Comment for "Python Scraping Go To Next Page Using Beautifulsoup"
Post a Comment for "Python Scraping Go To Next Page Using Beautifulsoup"