get rid of all urllib2 calls
This commit is contained in:
parent
1f14f6db55
commit
dcc23ba2a4
4 changed files with 11 additions and 17 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue