Compare commits

..

2 Commits

Author SHA1 Message Date
Hazel Noack
04e3d8f29f renamed the project for pypi 2025-06-11 15:37:34 +02:00
Hazel Noack
7dbdc39621 added proper readme 2025-06-11 15:30:28 +02:00
2 changed files with 37 additions and 7 deletions

View File

@ -4,14 +4,44 @@ A Python library for simplified HTTP requests, featuring rate limiting, browser-
## Features ## Features
- saving responses to cache - 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
## ToDo ## Installation
- [ ] basic structure **Note:** *I couldn't upload it as `python-requests` because pypi does not allow it.*
- [x] caching
- [ ] add cloudscraper ```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")
```
## License ## License
This project is licensed under the [**🏳️‍🌈 Opinionated Queer License v1.2**](https://oql.avris.it/license). So use is strictly prohibited for cops, military and everyone who actively works against human rights. This project is licensed under the [**🏳️‍🌈 Opinionated Queer License v1.2**](https://oql.avris.it/license). So use is strictly prohibited for cops, military and everyone who actively works against human rights.

View File

@ -1,5 +1,5 @@
[project] [project]
name = "python-requests" name = "easy-requests"
dependencies = [ dependencies = [
"requests~=2.32.4" "requests~=2.32.4"
] ]