File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # cloudscraper-server
2- Basic local proxy server for cloudscraper, made for use in my other projects
1+ # cloudscraper-proxy
2+ A simple local proxy server, powered by [ cloudscraper] ( https://github.com/VeNoMouS/cloudscraper )
3+ <br ></br >
4+
5+ ## Example
6+ Before (standard request, contents blocked by cloudflare)
7+ ![ image] ( https://github.com/user-attachments/assets/3ce7e244-8084-4e67-a904-e5a18d229899 )
8+
9+ After (using the local server, contents can be accessed normally)
10+ ![ image] ( https://github.com/user-attachments/assets/1b282213-6646-4011-abf0-5c19dc3de6d7 )
11+
12+
13+ ## Usage
14+ Replace the requests you'd like to make in your project
15+ ```
16+ https://www.google.com
17+ ```
18+ with a request to the bypass server
19+ ```
20+ localhost:port/api/proxy/https://www.google.com
21+ ```
22+ Then start the server so your project can make requests to it
23+ ```
24+ python server.py
25+ ```
26+ That's it!
27+ <br ></br >
28+
29+ ## Configuration
30+ Changing the port can be done simply by editing the bottom of the file
31+ ```
32+ if __name__ == "__main__":
33+ print('Starting cloudflare bypass proxy server')
34+ from waitress import serve
35+ serve(app, host="0.0.0.0", port=5000) # change the port here
36+ ```
37+ Feel free to configure flask or other options to suite your needs
You can’t perform that action at this time.
0 commit comments