diff options
author | emkael <emkael@tlen.pl> | 2014-10-15 17:06:41 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2014-10-15 17:06:41 +0200 |
commit | f1b990de03221a3ae4fc5d72582b5de9c1d3d2c1 (patch) | |
tree | 9e6e3840c2e7238f0593871769a9c3872bf0696d | |
parent | c9b351c6c566880f47ea23f634cd2039973be4d1 (diff) | |
parent | 2e34bc57e13e14520f0801a625d2f8b07c80bec4 (diff) |
Merge branch 'master'
-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 |