https://github.com/ifooth/httplog
requests,httplib3,urllib log
https://github.com/ifooth/httplog
Last synced: 11 days ago
JSON representation
requests,httplib3,urllib log
- Host: GitHub
- URL: https://github.com/ifooth/httplog
- Owner: ifooth
- Created: 2018-04-09T07:40:44.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-29T13:33:34.000Z (almost 7 years ago)
- Last Synced: 2025-11-27T12:52:07.064Z (7 months ago)
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## HTTP LOG
*urllib2 httplib2 requests日志小工具*
### 安装方法
1. pip install http-log
### 全局替换
在python 的 sitecustomize.py文件末尾,添加下面代码
文件路径:`python -m site --user-site`
```python
import httplog
httplog.monkey_patch()
```
### 项目替换
单个项目替换,如django项目开发默认下,在manage.py中添加下面代码
```python
import httplog
httplog.monkey_patch()
```