1een commited on
Commit
2a992c7
·
verified ·
1 Parent(s): a0f5dc6

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from api_solver import TurnstileAPIServer
2
+ import asyncio
3
+
4
+ app = TurnstileAPIServer(
5
+ headless=True,
6
+ useragent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
7
+ debug=False,
8
+ browser_type="chromium",
9
+ thread=1,
10
+ proxy_support=False
11
+ ).app
12
+
13
+ if __name__ == "__main__":
14
+ app.run(host="0.0.0.0", port=7860)