SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top