Invalid Argument error while reading external json file's values in python
I tried:
import json
with open('https://www.w3schools.com/js/json_demo.txt') as json_file:
data = json.load(json_file)
#for p in data['people']:
print('Name: ' + data['name'])
Gave me error:
with open('https://www.w3schools.com/js/json_demo.txt') as json_file: OSError: [Errno 22] Invalid argument: 'https://www.w3schools.com/js/json_demo.txt'