Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. for article in articles:
  2.  
  3. title = article.select('div.threadGrid-title .thread-title a')[0]['title']
  4. description = article.select('div.cept-description-container')[0].text
  5. link = article.select('div.threadGrid-title .thread-title a')[0]['href']
  6.  
  7. articles_objects.append(Article(title, description, link))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement