ScrapeMyst
a lean, human-like wrapper for Python requests. Handles user-agent rotation, proxy setup, and random delays so you don't have to.
Installation
pip install scrapemyst
Usage
Setup
from scrapemyst import ScrapeMyst
Initialize with proxies
proxies = ["127.0.0.1:8000", "example.com:8080"]
scrapemyst = ScrapeMyst(proxies=proxies)
Or use the default instance for quick tasks
from scrapemyst import scrapemyst
GET request
Supports fixed sleep (sleep=3) or random ranges (sleep=(1, 5)).
res = scrapemyst.send_get(
"https://example.com",
params={"id": "123"},
sleep=(2, 4),
referer="https://google.com"
)
if res["success"]:
print(f"status: {res['status_code']}")
# data is the raw requests response object
print(res["data"].text)
POST request
Works with standard form data or JSON.
POST form data
scrapemyst.send_post(
"https://example.com/login",
data={"user": "admin"}
)
POST JSON
res = scrapemyst.send_post(
"https://api.com/v1",
json={"key": "val"},
sleep=2
)
Response structure
Every method returns a simple dictionary:
success: bool —Trueif the request workedstatus_code: int — HTTP status code (200, 404, etc.)data: the raw response object (if successful)error_message: string (if it failed)
Customization
Add new headers
scrapemyst.update_headers({"X-Custom": "Value"})
Overwrite all headers
scrapemyst.update_headers({"User-Agent": "MyBot"}, replace=True)
License
MIT
Release files for scrapemyst 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scrapemyst-1.1.0.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scrapemyst-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / scrapemyst-1.1.0.tar.gz
| Download URL | scrapemyst-1.1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc63b80ca20fc8dacf18e028be56a73e4318565009db5f725591203d050ef691
|
|
BLAKE2b-256 checksum How to use checksums |
efe26b4083f01ea73f0f30e31a8f7756dd695b90611e70d5648c4d20c33dd13d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / scrapemyst-1.1.0-py3-none-any.whl
| Download URL | scrapemyst-1.1.0-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd97bfb96a084cc9020b421cfe195d71dea0e0b616f212d7c18222d4f82261b9
|
|
BLAKE2b-256 checksum How to use checksums |
65348785e4879f76744b259bc2767f06b8a480a5f438f37ca3c1f121e63c4589
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|