Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 631 Bytes
#-*- coding: utf-8 -*-
#modules to import
import csv
import codecs
import urllib2
from bs4 import BeautifulSoup
with open('500.csv', 'w') as f:
csvwriter = csv.writer(f)
soup = BeautifulSoup(urllib2.urlopen('').read())
header = soup.find(id='f500-list')
body = soup.find(id="content-placeholder")
for row in header.findAll('ul'):
heads = [h.text for h in row.findAll('li')]
for row in body.findAll('li'):
cells = [c.text.encode('utf-8') for c in row.findAll('span')]