Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BeautifulSoup4 plugin help
#1
Im new to Python and finding difficulty understanding some code.

when using the Beautifulsoup4 plugin, I want to search through a source code text. therefore:
for a in soup.findall('a',{'class':'item-name'}):
where soup is the variable containing soup form source code text.

What does ('a',{'class':'item-name'}) exactly mean?
Reply


Messages In This Thread
BeautifulSoup4 plugin help - by Lathem01 - Feb-16-2020, 09:01 AM
RE: BeautifulSoup4 plugin help - by Larz60+ - Feb-16-2020, 09:06 AM
RE: BeautifulSoup4 plugin help - by snippsat - Feb-16-2020, 11:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Beautifulsoup4 help samuelbachorik 1 1,378 Feb-05-2022, 10:44 PM
Last Post: snippsat
  Python3 + BeautifulSoup4 + lxml (HTML -> CSV) - How to write 3 Columns to MariaDB? BrandonKastning 21 7,115 Mar-23-2020, 05:51 PM
Last Post: ndc85430
  Cannot import BeautifulSoup4 as bs4 and BeautifulSoup4 not in same directory B5473829 1 6,472 Jul-05-2019, 06:55 PM
Last Post: snippsat
  BeautifulSoup4, How to get an HTML tag with specific class. Broadsworde 6 11,066 Nov-22-2018, 05:25 PM
Last Post: snippsat
  How to use BeautifulSoup4 with pandas series type of html data? PrateekG 4 4,964 Apr-26-2018, 07:33 AM
Last Post: PrateekG
  What's a good practice project for learning BeautifulSoup4, which has a real use case league55 2 2,763 Jan-27-2018, 11:29 PM
Last Post: league55

Forum Jump:

User Panel Messages

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