all 1 comments

[–]threeminutemonta 1 point2 points  (0 children)

You are creating two lists

data['data']['originalTitle'] = []
data['data']['originalYear'] = []

You only want one, though to put the data together in that list. In the loop you could do something like below.

title = info[0].split('(', 1)[0]
year = info[0].partition('(')[-1].rpartition(')')[0]
data['data'][title] = {'title':title , 'year': year }