Python: Difference between revisions

236 bytes added ,  10 January 2020
Line 197: Line 197:


===requests===
===requests===
Use the requests library to download files and scrape webpages
Use the requests library to download files and scrape webpages<br>
See [https://www.geeksforgeeks.org/get-post-requests-using-python/ Get and post requests in Python]
<syntaxhighlight lang="python">
import requests
url = R"https://www.google.com"
req = requests.get(url)
req.text
</syntaxhighlight>


===if main===
===if main===