smartrequests 🚀
A smart, lightweight wrapper over Python’s popular requests library — with built-in delays and a Googlebot-style user-agent to mimic human or bot-like behavior.
🔍 Why smartrequests?
Web crawling, scraping, and SEO testing often require:
- Respectful delays to avoid rate-limiting
- Realistic headers like search engine bots
- Simple, scriptable interface
smartrequests solves this with:
- ✅ Randomized delay per request
- ✅ Googlebot-style
User-Agent - ✅ Simple plug-and-play interface
- ✅ CLI support via
smartreqcommand
✨ Features
- 🕒 Auto-delay between requests (0.5s to 1.5s)
- 🕵️♂️ Custom
User-Agent:SmartBot/1.0 (like Googlebot) - 🔗 Drop-in replacement for
requests.Session() - 🔧 Command-line support (
smartreq <URL>) - 📦 Lightweight, no extra dependencies except
requests
📦 Installation
pip install smartrequests
⚙️ Usage (Python)
from smartrequests import SmartSession
session = SmartSession()
response = session.get("https://example.com")
print(response.status_code)
print(response.text[:500]) # Preview first 500 chars
🖥️ Usage (CLI)
smartreq https://example.com
Output:
[smartrequests] GET https://example.com (delay 0.92s)
200
<!DOCTYPE html> ...
📄 License
MIT License © 2025 Amal Alexander
Metadata
Release files for smartrequests 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smartrequests-0.1.1.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smartrequests-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.3 kB
Release files / smartrequests-0.1.1.tar.gz
| Download URL | smartrequests-0.1.1.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36a254b6d122cc90ba8dab3aff143c47188880dca36ef9d5d4755feb30b6f3b8
|
|
BLAKE2b-256 checksum How to use checksums |
c9d109ffe3bd88e7d30d47490651fc5eb420aff26df25eade0ee87a982fec660
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / smartrequests-0.1.1-py3-none-any.whl
| Download URL | smartrequests-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1e5494184e9bb5d734139f27d679f8af06d84c2ac40a13e6e354cc6a5b6cdac
|
|
BLAKE2b-256 checksum How to use checksums |
79d42fd93bf769d4adef84eb71af5bc6f3715feec2cac7cff57c669fd6c349c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|