From 63cf69d05f521e58d4096c67b2f557e2062ea93a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 16 Sep 2007 14:39:46 +0000 Subject: [PATCH] tweak for asian films --- scrapeit/wikipedia.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scrapeit/wikipedia.py b/scrapeit/wikipedia.py index c59736e..fbd9704 100644 --- a/scrapeit/wikipedia.py +++ b/scrapeit/wikipedia.py @@ -19,7 +19,9 @@ def searchByImdb(imdb_id, title=None, director=None): director = director[0] else: director = '' - for g in google('"%s" %s site:en.wikipedia.org' % (title, director), 7): + q = u'%s %s site:en.wikipedia.org' % (title, director) + #print q.encode('utf-8') + for g in google(q, 7): url = g[1] data = read_url(url) soup = BeautifulSoup(data)