Skip to content

Instantly share code, notes, and snippets.

View sukeesh's full-sized avatar
💭
Doing cool stuff

Sukeesh sukeesh

💭
Doing cool stuff
View GitHub Profile
@sukeesh
sukeesh / wallhaven.py
Last active August 29, 2015 14:27 — forked from avamsi/wallhaven.py
from bs4 import BeautifulSoup
from itertools import count
import requests
url = 'http://alpha.wallhaven.cc/search?categories=101&sorting=favorites&order=desc&page='
jpg = 'http://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-%s.jpg'
png = 'http://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-%s.png'
status = '\r[page {:0>3}] [image {:0>2}|24] [{:.<24}]'.format