PL03-Topic02, requests
Back to the previous page |page 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
- Implementation with python2 on web
- Implementation with python3 on web
- Python’s Requests Library (Guide)
- post3
OUTPUT
<details markdown="1">
<summary class='jb-small' style="color:red">OUTPUT</summary>
<hr class='division3_1'>
<hr class='division3_1'>
</details>