generated from Hazel/python-project
Compare commits
No commits in common. "04e3d8f29fea4de4b9a790b8d54f1ef1964d632b" and "616c3485de12503438e221f661bdac67469b51f6" have entirely different histories.
04e3d8f29f
...
616c3485de
40
README.md
40
README.md
@ -4,43 +4,13 @@ A Python library for simplified HTTP requests, featuring rate limiting, browser-
|
||||
|
||||
## Features
|
||||
|
||||
- Save responses to cache
|
||||
- Use any session (e.g., bypass Cloudflare using [cloudscraper](https://pypi.org/project/cloudscraper/))
|
||||
- Configurable wait between requests without thread blocking
|
||||
- Automatic retries for failed requests
|
||||
- saving responses to cache
|
||||
|
||||
## Installation
|
||||
## ToDo
|
||||
|
||||
**Note:** *I couldn't upload it as `python-requests` because pypi does not allow it.*
|
||||
|
||||
```bash
|
||||
pip install easy-requests
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Basic Usage
|
||||
|
||||
```python
|
||||
from python_requests import Connection, set_cache_directory
|
||||
|
||||
set_cache_directory("/tmp/your-project")
|
||||
connection = Connection()
|
||||
|
||||
response = connection.get("https://example.com")
|
||||
```
|
||||
|
||||
### Using with Cloudscraper
|
||||
|
||||
```python
|
||||
from python_requests import Connection, set_cache_directory
|
||||
import cloudscraper
|
||||
|
||||
set_cache_directory("/tmp/your-project")
|
||||
connection = Connection(cloudscraper.create_scraper())
|
||||
|
||||
response = connection.get("https://example.com")
|
||||
```
|
||||
- [ ] basic structure
|
||||
- [x] caching
|
||||
- [ ] add cloudscraper
|
||||
|
||||
## License
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
[project]
|
||||
name = "easy-requests"
|
||||
name = "python-requests"
|
||||
dependencies = [
|
||||
"requests~=2.32.4"
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user