I was trying to create a new paste and followed the steps of api section in the linkode site using py 3.7
but failed on line 4
u = request.urlopen("http://linkode.org/api/1/linkodes/", data=raw)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python37-32\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Python37-32\lib\urllib\request.py", line 531, in open
response = meth(req, response)
File "C:\Python37-32\lib\urllib\request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Python37-32\lib\urllib\request.py", line 569, in error
return self._call_chain(*args)
File "C:\Python37-32\lib\urllib\request.py", line 503, in _call_chain
result = func(*args)
File "C:\Python37-32\lib\urllib\request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
can you guys help here or should i switch to requests and use a fake header?
I was trying to create a new paste and followed the steps of api section in the linkode site using py 3.7 but failed on line 4
u = request.urlopen("http://linkode.org/api/1/linkodes/", data=raw)
can you guys help here or should i switch to requests and use a fake header?