Instal Permintaan Perpustakaan-HTML di Python
python -m pip install requests-html
Pythonist
python -m pip install requests-html
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
python -m pip install requests-html==0.10.0