Guest User

Untitled

a guest
Dec 12th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. def process_article(article):
  2. return {"chars": article["chars"],
  3. "id": article["id"],
  4. "section": article["section"]
  5. "tags": article["tags"],
  6. "text": article["text"],
  7. "title": article["title"],
  8. "url": article["url"],
  9. "year": article["year"]}
  10.  
  11. def process_articles(article_list):
  12. res = []
  13. for article in articles:
  14. res.append(process_article(article))
  15. return res
Add Comment
Please, Sign In to add comment