Quote:
Originally Posted by Starson17
Let's start at:
'title' : article title,
'url' : URL of article
'date' : The publication date of the article as a string,
'description' : A summary of the article
I suggest you search the recipes for "parse_index." There are dozens of examples of how this is done.
|
I'm looking at The Atlantic and I have a general Idea of this.. I'm kinda stuff though. I'm trying to get the Section title
In the example they used
Code:
sectit = soup.find('h1', attrs={'class':'sectionTitle'})
so I understand that that is looking for all h1 tags with a class=sectionTitle
but in my case I only have a href inside the h2 tags.

sorry for all the questions just trying to learn