Question: Using this code how do I grab the output of this api and transfer it into a txt file import json import urllib url_2 =

Using this code how do I grab the output of this api and transfer it into a txt file import json import urllib
 
url_2 = 'https://jobs.github.com/positions.json?page=2' 
json_obj_2 = urllib.urlopen(url_2) 
data_2 = json.load(json_obj_2) # type: object 
 def test(): urllib.urlopen('https://jobs.github.com/positions.json?page=2') print (json.dumps(data_2[2]))

def main(): test()

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!