url='http://www.imdb.com/search/title'params=dict(sort='num_votes,desc',start=1,title_type='feature',year='1950,2012')r=requests.get(url,params=params)printr.url# notice it constructs the full url for you

#selection in pattern follows the rules of CSSdom=web.Element(r.text)formovieindom.by_tag('td.title'):title=movie.by_tag('a')[0].contentgenres=movie.by_tag('span.genre')[0].by_tag('a')genres=[g.contentforgingenres]runtime=movie.by_tag('span.runtime')[0].contentrating=movie.by_tag('span.value')[0].contentprinttitle,genres,runtime,rating