summaryrefslogtreecommitdiff
path: root/dumps
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2014-10-31 21:51:55 +0100
committeremkael <emkael@tlen.pl>2014-10-31 21:51:55 +0100
commit9eabd017b4e7306bf59a9ef5776ed1d5a297e469 (patch)
treecfe9446f05dac17e38bc6e8b4244433961c89e27 /dumps
parentb13813f96822ed7de314b6dd417831de8a641134 (diff)
* ChicaneF1 title extraction
Diffstat (limited to 'dumps')
-rw-r--r--dumps/_sites/chicane-f1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dumps/_sites/chicane-f1.py b/dumps/_sites/chicane-f1.py
index 07d90c9..b308d44 100644
--- a/dumps/_sites/chicane-f1.py
+++ b/dumps/_sites/chicane-f1.py
@@ -7,7 +7,7 @@ from lxml import html
def fetch(url):
contents = urllib2.urlopen(url).read()
tree = html.fromstring(contents)
- title = tree.xpath("//title")[0].text
+ title = tree.xpath("//h1")[0].text + ' - ' + tree.xpath('//span[@class="subtitle"]')[0].text
tables = tree.xpath("//table[@cellpadding=6]")
print url
print title