def parse_index(html):
all_url = re.findall(r’.+,
html])
return [http://www.movie.com{}.format(url) for url in all_url]
def parse_info(html):
name = re.findall(r’
(.+)
types = re.findall(r’
- (.+)
actors = re.findall(r’- s+s+.html
actors = e,xpath('//li[@class = "celebrity actor"]/div['class = "info"]/a/text()')
actors = format_actor( actor)
return{
"name":name,
"types":types,
"actor":actor
}
actors = re.findall(r’
actors = e,xpath('//li[@class = "celebrity actor"]/div['class = "info"]/a/text()')
actors = format_actor( actor)
return{
"name":name,
"types":types,
"actor":actor
}



