![]() ![]() ![]() > bs.find_all(attrs=) \n\nPlease share this article if you like it! Bless me or curse me in comments! Thank you for reading anyway!\n\n\n\n\n' U'\nLenovo K3 Note Brutally Honest Review: Specifications, Pros and Cons\n' So you should rather look for the class and id of the objects you want to extract: > bs.find_all('h1').getText() Well, you're using BeautifulSoup wrong, to extract your text, you shall not be getting the raw text… BS is not a magical wand that guesses what you need out of a page, it needs to be told what to do.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |