Question: GITHUB using PYTHON QUESTION: I am trying to gather login information of collaborators and append them using python about github api but I keep getting

GITHUB using PYTHON QUESTION: I am trying to gather login information of collaborators and append them using python about github api but I keep getting this error saying that string indices must be integers. I am not sure where I am making error and how I can fix this?!

Thank you!

GITHUB using PYTHON QUESTION: I am trying to gather login information of

collaborators and append them using python about github api but I keep

resp1 = response1.json() for login in resp1: element=login['login'] collablist.append(element) print(collablist) TypeError Traceback (most recent call last) in 28 resp1 = responsel.json() 29 for login in resp1: ---> 30 element=login['login'l 31 collablist.append(element) 32 TypeError: string indices must be integers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!