Skip to content

Instantly share code, notes, and snippets.

import urllib2
import csv
from bs4 import BeautifulSoup
baseurl = 'http://www.planecrashinfo.com'
dburl = 'http://www.planecrashinfo.com/database.htm'
page = urllib2.open(dburl)
soup = BeautifulSoup(page)
years_a = soup.findAll("a")
years = []
#Add links to list years without last link