Beautifulsoup4: How To Retrieve A List Of The Class Name Of Specific Tag June 16, 2022 Post a Comment I get that from beautifulsoup4: ABC DEF Solution 1: for s in soup.find_all('td'): print ''.join(s['class']).strip(), s.text Copy Share You may like these postsBeautifulsoup: Findall Doesn't Find The TagsExtract Attribute Value In Beautiful SoupIs It Possible To Just Get The Tags Without A Class Or Id With Beautifulsoup?How To Loop To Scrape Different Pages With Python Post a Comment for "Beautifulsoup4: How To Retrieve A List Of The Class Name Of Specific Tag"
Post a Comment for "Beautifulsoup4: How To Retrieve A List Of The Class Name Of Specific Tag"