From 6d915e399de720ec8f9d3f04c649d64e410bc587 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 14 Oct 2014 16:56:32 +0200 Subject: * tidying up imports --- dumps/second-a-lap.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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 -- cgit v1.2.3 From 2e34bc57e13e14520f0801a625d2f8b07c80bec4 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 14 Oct 2014 16:59:13 +0200 Subject: * ignore output files --- dumps/.gitignore | 2 ++ dumps/second-a-lap/.gitignore | 1 + 2 files changed, 3 insertions(+) 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/.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 -- cgit v1.2.3