I'm working on this code ("https://dlab.berkeley.edu/blog/scraping-new-york-times-articles-python-tutorial"). I upgrade the code but I'm having a problem with this code
Amnesty_all = ()
for i in range (1980, 2014):
print ("processing" + str(i) +"...")
Amnesty_year = get_articles(str(i), 'Amnesty International')
Amnesty_all = Amnesty_all + Amnesty_year
this is the error
TypeError Traceback (most recent call last)
<ipython-input-45-9d931b0be5bb> in <module>()
1 Amnesty_all = ()
2 for i in range (1980, 2014):
----> 3 print ("processing" + str(i) +"...")
4 Amnesty_year = get_articles(str(i), 'Amnesty International')
5 Amnesty_all = Amnesty_all + Amnesty_year
TypeError: 'str' object is not callable
Do you have any idea how to resolve this ?