From 7dc4904f17bda912ffe4304ab64493cbaf0708a9 Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 13 Jul 2015 14:46:46 +0200 Subject: [PATCH] Update scraper.py --- scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scraper.py b/scraper.py index b970286..144f803 100644 --- a/scraper.py +++ b/scraper.py @@ -12,7 +12,7 @@ movieID = link.split("/")[4] title = rootMovie.cssselect("h2 a:nth-of-type(1)")[0].text_content() year = title.split(' ')[-1].replace('(','').replace(')','') - imdbUrl = rootMovie.cssselect(" h2 a href") + imdbUrl = rootMovie.cssselect("h2 a") print imdbUrl break