Skip to content

Instantly share code, notes, and snippets.

View rounakdatta's full-sized avatar
💭
roses are sunny, noses are runny

Rounak Datta rounakdatta

💭
roses are sunny, noses are runny
View GitHub Profile
@rounakdatta
rounakdatta / reddit.py
Last active March 4, 2018 17:15
subreddit content scraper
import requests
import string
link = 'https://www.reddit.com/r/DarkHumor/.json'
subreddit = requests.get(link, headers = {'User-agent': 'nexttechbot'})
posts = subreddit.text.split()
post_list = []