Home
Random
Log in
Settings
About David's Wiki
Disclaimers
David's Wiki
Search
Python: Difference between revisions
Page
Discussion
← Older edit
Newer edit →
Python
(view source)
Revision as of 21:17, 10 January 2020
79 bytes added
,
10 January 2020
→requests
Revision as of 21:16, 10 January 2020
(
view source
)
David
(
talk
|
contribs
)
(
→requests
)
← Older edit
Revision as of 21:17, 10 January 2020
(
view source
)
David
(
talk
|
contribs
)
(
→requests
)
Newer edit →
Line 204:
Line 204:
req = requests.get(url)
req = requests.get(url)
req.text
req.text
# To save to disk
with open("google.html", "wb") as f:
f.write(req.content)
</syntaxhighlight>
</syntaxhighlight>
David
Bureaucrats
,
Interface administrators
,
Administrators
5,323
edits