You are here : python_3requestsrequestsget

requests.get() - requests

requests.get(url) is used to fetch a webpage. It makes a HTTP GET Request method to the specified URL.


Syntax

r=requests.get(URL)


Example

import requests
url="https://wikidev.in"
r=requests.get(url)
# r is response 
#r.text gives HTML of the page


Output / Return Value

Response object.


Limitations


Alternatives / See Also


Reference

http://docs.python-requests.org/en/master/user/quickstart/