Skip to content

Instantly share code, notes, and snippets.

@blha303
blha303 / bropages.py
Created February 27, 2014 13:16
Get all bropages entries and output to folder
import requests
from os import mkdir, sep, listdir
from BeautifulSoup import BeautifulSoup as Soup
# Load page
soup = Soup(requests.get("http://bropages.org/browse").text)
# Get rows excluding header
rows = soup.findAll('tr')[1:]
cmds = []
# iterate over rows, get commands, save list without duplicates
for a in rows: