SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. articles_objects = []
  2.  
  3. for article in articles:
  4.     title = article.select('div.threadGrid-title .thread-title a')[0]['title']
  5.     description = article.select('div.cept-description-container')[0].text
  6.     link = article.select('div.threadGrid-title .thread-title a')[0]['href']
  7.  
  8.     articles_objects.append({
  9.         'title': title, 'description': description, 'link': link,
  10.     })
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
 
Top