get rid of all urllib2 calls

This commit is contained in:
j 2014-10-05 20:06:22 +02:00
commit dcc23ba2a4
4 changed files with 11 additions and 17 deletions

View file

@ -7,12 +7,6 @@ from ox import find_re, strip_tags
def get_url(id=None, imdb=None):
#this would also wor but does not cache:
'''
from urllib2 import urlopen
u = urlopen(url)
return u.url
'''
if imdb:
url = "http://www.rottentomatoes.com/alias?type=imdbid&s=%s" % imdb
data = read_url(url)