I am trying to fetch table record by using requests method in python it's working fine with other URL request but the URL I have mentioned in the code its actually biometric machine data present int the link in form of a table. I have mentioned the code below please review and let me know have a possible solution. actually I want to fetch attendance record import requests import sys, JSON import requests import sys, JSON
import json
import requests
import urllib
url = "http://pokemondb.net/pokedex/all"
data = requests.get(url).json()
print(str(data.status_code))
if data.status_code == 200:
print(str(data.json()))
Error
Traceback (most recent call last): File "/home/arslan/Documents/Dynexcel/http_request_html_table/http_request.py", line 7, in data = requests.get(url).json() File "/usr/lib/python3/dist-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3/dist-packages/simplejson/init.py", line 518, in loads return _default_decoder.decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)