반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- VirtualBox
- 맥
- centos
- 오블완
- IOS
- 리눅스
- localserver
- 개발
- Chrome
- androidstudio
- MAC
- 센토스
- PYTHON
- ReactNative
- pydantic
- build
- fastapi
- xcode
- 티스토리챌린지
- TensorFlow
- linux
- webpack
- Android
- vsCode
- 네트워크
- node
- MachineLearning
- unittest
- react
Archives
- Today
- Total
로메오의 블로그
[Python] requests 본문
반응형
requests 설치
$ pip install requests
call.py
import requests
def call():
headers = {
'Content-Type' : 'application/x-www-form-urlencoded'
}
payload = {
'id': 'foo',
'name': 'bar'
}
url = 'https://domain.com'
response = requests.post(url, headers=headers, data=payload)
print(response)
call()
코드 실행
$ python3 call.py
반응형
'Backend > Python & Blockchain' 카테고리의 다른 글
| FastAPI 서버 구축 (0) | 2025.05.19 |
|---|---|
| Python3 SSL: CERTIFICATE_VERIFY_FAILED 해결하기 - Mac (0) | 2024.02.02 |
| [Python] setInterval 구현 (0) | 2022.11.17 |
| [Python] Selenium으로 Crawling하기 (0) | 2020.02.19 |
| [Python] Python Crawling 웹 크롤링 (0) | 2020.02.18 |
Comments
