Feb-16-2020, 09:01 AM
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?
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?