You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+110Lines changed: 110 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ Official Python wrapper for [Scrappey.com](https://scrappey.com) - Web scraping
16
16
-**Proxy Support** - Built-in proxy rotation with country selection
17
17
-**Async Support** - Both sync and async clients included
18
18
-**Type Hints** - Full type annotations for IDE support and AI assistants
19
+
-**Drop-in Replacement** - Use as a replacement for the `requests` library
19
20
20
21
## Installation
21
22
@@ -68,6 +69,115 @@ async def main():
68
69
asyncio.run(main())
69
70
```
70
71
72
+
## Drop-in Replacement for `requests`
73
+
74
+
Scrappey provides a **drop-in replacement** for the popular `requests` library. Simply change your import and your existing code will work with Scrappey's Cloudflare bypass and antibot capabilities!
75
+
76
+
### Migration
77
+
78
+
```python
79
+
# Before (using requests)
80
+
import requests
81
+
82
+
response = requests.get("https://example.com")
83
+
print(response.text)
84
+
85
+
# After (using Scrappey) - just change the import!
86
+
from scrappey import requests
87
+
88
+
response = requests.get("https://example.com")
89
+
print(response.text)
90
+
```
91
+
92
+
That's it! Your code now uses Scrappey for automatic Cloudflare bypass.
93
+
94
+
> **Note**: Set the `SCRAPPEY_API_KEY` environment variable with your API key.
95
+
96
+
### Response Object
97
+
98
+
The Response object works exactly like `requests.Response`:
0 commit comments