diff options
author | emkael <emkael@tlen.pl> | 2014-10-31 21:51:55 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2014-10-31 21:51:55 +0100 |
commit | 9eabd017b4e7306bf59a9ef5776ed1d5a297e469 (patch) | |
tree | cfe9446f05dac17e38bc6e8b4244433961c89e27 | |
parent | b13813f96822ed7de314b6dd417831de8a641134 (diff) |
* ChicaneF1 title extraction
-rw-r--r-- | dumps/_sites/chicane-f1.py | 2 |
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 |