There are several links on the site at the top with tags 1 , 2 , 3 and next . If a link marked with a number is clicked, it dynamically loads some data into the content div . If you click next , it will go to the page with labels 4 , 5 , 6 , next and the data for the page will be displayed.
I want to clear the data from the contents of a div for all clicked links (I don't know how many there are, it just shows 3 at a time and next )
Please provide an example of how to do this. For example, consider www.cnet.com.
I ask you to advise to download a series of pages using selenium and analyze them to cope with a beautiful soup yourself.
source share