summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2014-10-15 17:06:41 +0200
committeremkael <emkael@tlen.pl>2014-10-15 17:06:41 +0200
commitf1b990de03221a3ae4fc5d72582b5de9c1d3d2c1 (patch)
tree9e6e3840c2e7238f0593871769a9c3872bf0696d
parentc9b351c6c566880f47ea23f634cd2039973be4d1 (diff)
parent2e34bc57e13e14520f0801a625d2f8b07c80bec4 (diff)
Merge branch 'master'
-rw-r--r--dumps/.gitignore2
-rwxr-xr-xdumps/second-a-lap.py17
-rw-r--r--dumps/second-a-lap/.gitignore1
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