Home > other >  In the select BeautifulSoup
In the select BeautifulSoup

Time:09-24

I use copy the selector methods to copy the contents of the into the select run after scraping to the empty list
I put the inside of the content to a minimum as far as possible, but in addition to an outside fetching data, reduced to a data positioning is not what I want when
How to solve

CodePudding user response:

I add the headers and cookies

CodePudding user response:

When reduced to a data that don't need to add a cookie can get data, then according to narrow the scope of the CSS selector class attribute as far as possible, for example:

 


Can set the CSS selector to "div. ABC & gt; A ", if you have the id attribute is more precise matching,

If you do not understand the selector, you can take a look at this article: https://blog.csdn.net/dragonballs/article/details/108764264
Save this page can help you understand the selector and XPath information,

  • Related