Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python request example

import requests
   
# Making a GET request
r = requests.get('https://api.github.com/users/naveenkrnl')
  
# check status code for response received
# success code - 200
print(r)
  
# print content of request
print(r.content)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python #request
ADD COMMENT
Topic
Name
1+1 =