Python Get Json From Page Source

[Solved] Python Get Json From Page Source | Dart - Code Explorer | yomemimo.com
Question : how to read a json resposnse from a link in python

Answered by : ankit-chawla

import urllib, json
url = "put url here"
response = urllib.request.urlopen(url)
data = json.loads(response.read())
print (data)

Source : | Last Update : Tue, 12 May 20

Question : fetch a json from url python

Answered by : jittery-jellyfish-zpv940gxp4co

import requests
r = requests.get('url')
print r.json()

Source : | Last Update : Tue, 12 May 20

Answers related to python get json from page source

Code Explorer Popular Question For Dart