raju014 commited on
Commit
6cf3266
·
verified ·
1 Parent(s): 10fe045

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +30 -0
README.md ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Aviator Data Collector
3
+ emoji: 🚀
4
+ colorFrom: blue
5
+ colorTo: purple
6
+ sdk: docker
7
+ app_port: 7860
8
+ ---
9
+
10
+ # Aviator Data Collector Bot 🚁
11
+
12
+ This bot is designed to run 24/7 on Hugging Face to collect live game multipliers and timestamps for future Reinforcement Learning (RL) model training.
13
+
14
+ ## How it Works
15
+ - Uses **Playwright Headless** to bypass basic protections and monitor the DOM directly.
16
+ - Saves results continuously into `game_history.csv` without missing a beat.
17
+ - Exposes a FastAPI server on port 7860 to keep the Hugging Face Space "Alive".
18
+
19
+ ## Keeping It Alive 24/7
20
+ Hugging Face puts free spaces to sleep after 48 hours of inactivity. To prevent this:
21
+ 1. Copy your Space URL (e.g., `https://your-username-aviator-collector.hf.space`).
22
+ 2. Go to [UptimeRobot](https://uptimerobot.com/) or [Cron-job.org](https://cron-job.org/).
23
+ 3. Add a new HTTPS monitor pointing to your Space URL.
24
+ 4. Set it to ping every 5 minutes.
25
+
26
+ ## API Endpoints
27
+ - `/` - Healthcheck (Shows if bot is running)
28
+ - `/results` - Returns the last 50 collected multipliers in JSON format.
29
+
30
+ *(Made for RL Training data gathering)*