Created
February 8, 2019 06:42
-
-
Save aborsu/f940f954cf0e41d82ab502072e012b22 to your computer and use it in GitHub Desktop.
For vio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
df = pd.DataFrame.from_records([ | |
{ | |
"id": post.id, | |
"title": post.title, | |
"url": post.url, | |
"text": post.selftext, | |
"author": post.author.name if post.author else "", | |
"created_utc": datetime.utcfromtimestamp(post.created_utc), | |
"flair": post.link_flair_text, | |
} for post in posts]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment