Home > other >  About beautifulsoup4
About beautifulsoup4

Time:09-15

I am a novice, for the first time to write I downloaded the beautiful soup4 but don't know why I can't use find_all

CodePudding user response:

I think it should be: host_info [0]. Find_all (" li ")!

CodePudding user response:

Suggest a complete code, can at least see you ever import ah, is there any initialization ah,,,,

CodePudding user response:

Can only use the selector class find_all host_infos you print is a None, NoneType this type is no find_all of this method

CodePudding user response:

reference kohane Jary reply: 3/f
can only use the selector class find_all, host_infos you print is a None, this type is not NoneType find_all this method


So let's first check html_tree. The find () inside the CSS statement, ensure that can extract to things

CodePudding user response:

If html_tree. The find () what all can't find, nature will not be able to find
  • Related