Skip to content

Instantly share code, notes, and snippets.

View adrianbartnik's full-sized avatar
🍿

Adrian Bartnik adrianbartnik

🍿
View GitHub Profile
@adrianbartnik
adrianbartnik / CinemagraphsReddit.py
Created June 1, 2013 21:36
A python script that downloads all gifs from reddit.com/r/cinemagraphs in an infinite loop until the api restriction from reddit triggers
import re, mechanize, os, urllib
br = mechanize.Browser()
br.open("http://www.reddit.com/r/Cinemagraphs")
image = urllib.URLopener()
links = set()
i = 0;
dirname = "gifs"