Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def process_article(article):
- return {"chars": article["chars"],
- "id": article["id"],
- "section": article["section"]
- "tags": article["tags"],
- "text": article["text"],
- "title": article["title"],
- "url": article["url"],
- "year": article["year"]}
- def process_articles(article_list):
- res = []
- for article in articles:
- res.append(process_article(article))
- return res
Add Comment
Please, Sign In to add comment