diff options
-rw-r--r-- | dumps/.gitignore | 2 | ||||
-rwxr-xr-x | dumps/second-a-lap.py | 17 | ||||
-rw-r--r-- | dumps/second-a-lap/.gitignore | 1 |
3 files changed, 16 insertions, 4 deletions
diff --git a/dumps/.gitignore b/dumps/.gitignore index ed6d089..b6aff3a 100644 --- a/dumps/.gitignore +++ b/dumps/.gitignore @@ -1 +1,3 @@ second-a-lap.txt +compiled.csv +races.csv diff --git a/dumps/second-a-lap.py b/dumps/second-a-lap.py index afc76bc..771677a 100755 --- a/dumps/second-a-lap.py +++ b/dumps/second-a-lap.py @@ -1,11 +1,20 @@ #!/usr/bin/env python +import csv +import json +import os +import pprint +import re +import string +import urllib +import urllib2 +import urlparse from sys import argv -import urlparse, urllib, urllib2 -import json, pprint -from lxml import html, etree + +from lxml import etree, html + from bs4 import BeautifulSoup -import os, string, re, csv + def fetch(url): print url diff --git a/dumps/second-a-lap/.gitignore b/dumps/second-a-lap/.gitignore index 2211df6..ea672e2 100644 --- a/dumps/second-a-lap/.gitignore +++ b/dumps/second-a-lap/.gitignore @@ -1 +1,2 @@ *.txt +csv |