Metadata-Version: 2.1
Name: requestspr
Version: 0.0.2
Summary: 在启动了Clash的情况下，requests发送请求会报错，于是稍微封装了下
License: MIT
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
License-File: LICENSE

# requestspr

![PyPI](https://img.shields.io/pypi/v/requestspr)
![PyPI - License](https://img.shields.io/pypi/l/requestspr)

> 在启动了Clash的情况下，requests发送请求会报错，于是稍微封装了下

## Install
```
pip install requestspr
```

## Example

```python
import requestspr as requests


def google_search(text: str):
    """谷歌搜索"""
    return requests.get(f'https://www.google.com/search?q={text}')


if __name__ == '__main__':
    # 默认使用系统代理, 请求成功
    print(google_search('test'))

    # 不使用系统代理，请求失败
    # requests.set_proxy_mode(requests.ProxyMode.NoProxy)
    # print(google_search('test'))

    # 自行设置代理
    # requests.set_proxy_mode(requests.ProxyMode.Static, {'https': '127.0.0.1:7890'})
    # print(google_search('test'))

```
