Python Forum
Extract something when you have multiple tags
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extract something when you have multiple tags
#2
Add after:
voteup = (soup.find('span', {'class': 'nvb voteup'}))
to:
splist = votup.find_all('span')

you can then extract your data from the splist
Reply


Messages In This Thread
RE: Extract something when you have multiple tags - by Larz60+ - Aug-03-2021, 09:10 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020