Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Get request using python requests-html module

from requests_html import HTMLSession
session = HTMLSession()
# url to make a get request to
url='https://httpbin.org/get'
get_user ={
    "user":'alixaprodev'
}
# making get request
response = session.get(url, data=get_user)
print(f'Status Code:{response.status_code} ')
print(f'Request Type : {response.request}')

## output  ##
# Status Code:200 
# Request Type : <PreparedRequest [GET]>Copy Again
Source by www.alixaprodev.com #
 
PREVIOUS NEXT
Tagged: #Get #request #python #module
ADD COMMENT
Topic
Name
4+4 =