Requests Module For HTTP Requests | Python Tutorials For Absolute Beginners In Hindi #81

Code as described/written in the video


import requests
r = requests.get("https://financialmodelingprep.com/api/company/price/AAPL")
print(r.text)
print(r.status_code)

# url = "www.something.com"
# data = {
#     "p1":4,
#     "p2":8
# }
# r2 = requests.post(url=url, data=data)


Be the first person to comment!

Comments(0)