6626070
2997924

PL03-Topic02, requests

Back to the previous pagepage management
List of posts to read before reading this article


Contents


Installation

For linux

$ pip3 install requests




For windows

pip install requests




Version Control






get

import requests

url = 'https://song-eunho.tistory.com/'

resp = requests.get(url)
print(resp.text)





post

import requests

url = 'https://www.kangcom.com/member/member_check.asp'
data = {'id':'ailever','pwd':'password'}

resp = requests.post(url, data=data)
print(resp.text)





title3


List of posts followed by this article


Reference


OUTPUT
<details markdown="1">
<summary class='jb-small' style="color:red">OUTPUT</summary>
<hr class='division3_1'>
<hr class='division3_1'>
</details>