Page monitoring
script for internal personal use. VPS is already available
Technical assignment: monitoring Truth Social
1. Project description
Automated account monitoring system on the Truth Social platform with phone notifications and AI content analysis.
2. Functional requirements
2.1 Monitoring
- Check for new posts from the specified account
- Check frequency: 4 times per second
- Use of proxy servers to bypass restrictions
- Automatic IP address rotation
2.2 Notifications
- Phone call when a new post appears
- Voice message with customizable text
- Uses Twilio API
2.3 Content analysis
- Extract text from the new post
- Send text to DeepSeek AI for analysis
- Customizable prompt for analysis
- Save results to the database
2.4 Web interface
- View the list of recent posts
- Display AI analysis results
- System status (active/stopped)
- Time of last check
3. Technologies
Backend:
- Python 3.10+
- Flask (web server)
- cloudscraper (bypass Cloudflare protection)
- twilio (phone calls)
- openai (compatible with DeepSeek API)
- sqlite3 (database)
Frontend:
- HTML
- Bootstrap 5 (via CDN)
- JavaScript (data updates)
4. Project structure
project/
│
├── config.json # Configuration file
├── app.py # Main application code
├── templates/
│ └── index.html # Web interface
└── data.db # Database (created automatically)
5. Configuration file (config.json)
{
"target_account": "username",
"scan_frequency": 4,
"proxies": [
],
"twilio": {
"account_sid": "ACxxxxxxxxxxxxx",
"auth_token": "your_auth_token",
"from_number": "+",
"to_number": "+",
"message": "New post detected"
},
"deepseek": {
"api_key": "sk-xxxxxxxxxxxxx",
"prompt": "Analyze the following post and determine: sentiment (positive/negative/neutral), main topics, mentions of companies or countries. Post: {text}"
}
}
6. Database
Table posts:
- id (PRIMARY KEY)
- post_id (unique post ID)
- username (account name)
- text (post text)
- created_at (publication time)
- ai_analysis (analysis result from DeepSeek)
- call_status (call status: success/error)
7. Architecture
Web interface (Flask)
↓
├── GET / → Main page with post table
├── GET /api/posts → JSON with the list of posts
└── GET /api/status → JSON system status
Background process (separate thread):
[Check account]
↓
[New post found?]
↓ (yes)
[Call via Twilio]
↓
[Analyze via DeepSeek]
↓
[Save to SQLite]
↓
[Wait 0.25 sec] → [Repeat]
8. Workflow algorithm
Start application
- Read config.json
- Connect to the database
- Start Flask server
- Start background monitoring thread
Monitoring loop (every 0.25 seconds):
- Select the next proxy from the list
- Request the account page
- Extract the ID of the last post
- Compare with the previous ID
- If new post → start processing
Process new post:
- Extract post text
- Call via Twilio
- Send text to DeepSeek
- Receive analysis result
- Save to database
Web interface:
- JavaScript requests /api/posts every 0.25 seconds
- Update post table
- Display system status
9. Web interface
Main page contains:
- Header with system name
- Status indicator (green = running)
- Time of last check
- Table with columns:
- Publication time
- Account name
- Post text (first 200 characters)
- AI analysis result
- Call status
10. Installation and launch
Step 1. Install dependencies:
pip install flask cloudscraper twilio openai
Step 2. Configure config.json:
- Specify the account name for monitoring
- Add a list of proxy servers
- Enter Twilio account details
- Add DeepSeek API key
- Configure prompt for analysis
Step 3. Launch:
python app.py
Step 4. Open browser:
http://localhost:5000
11. Server requirements
Minimum:
- Python 3.10+
- 512 MB RAM
- 5 GB disk space
- Stable internet connection
Recommended:
- VPS/Cloud server (Digital Ocean, AWS, etc.)
- 1 GB RAM
- Ubuntu 22.04 or similar OS
12. Complexity assessment
Development complexity: 3/10
Development time:
- From scratch: 4-5 hours
- With AI assistance: 2-3 hours
Components:
- ✅ All libraries are well documented
- ✅ Simple architecture (one file)
- ✅ Standard APIs (Twilio, DeepSeek)
- ⚠️ Only complexity: bypassing Cloudflare
13. What AI can write
The neural network can handle the task 95%:
- ✅ Flask application structure
- ✅ Twilio API integration
- ✅ DeepSeek API integration
- ✅ Working with SQLite
- ✅ HTML interface
- ✅ Monitoring logic
- ⚠️ Manual configuration for bypassing Cloudflare may be required
14. Possible problems and solutions
Problem: Cloudflare blocks requests
Solution: Use quality proxies, increase pauses between requests
Problem: Proxies do not work
Solution: Regularly update the list of proxies in config.json
Problem: DeepSeek returns an error
Solution: Check API key and account balance
Problem: Twilio does not call
Solution: Check account balance, number verification
Conclusion: The project is technically feasible within a few hours using standard tools. The main code can be generated by an AI assistant with minimal adjustments.
-
Простите за банальщину, но реализуйте его сами за несколько часов - сэкономите целых 30 баксов! это ж целых 2 шаурмы съесть мсожно
-
Current freelance projects in the category Python
Creation of a TikTok farm with income generation
601 USD
Looking for a person who can write software for a TikTok farm, so we can generate traffic and earn income. We are seeking a ready-made solution with a full cycle. Python, Bot Development ∙ 2 days 17 hours back ∙ 16 proposals |
AI Commenting Platform for TikTok and Instagram.Project Goal Develop a system that allows managing a large number of TikTok and Instagram accounts and automatically posting relevant comments under selected videos using AI. Main Functionality1. Account Management It is necessary to implement the ability to connect accounts:… AI & Machine Learning, Python ∙ 4 days back ∙ 23 proposals |
Build a customer classification model1. There is client data in Mongo/SQL (approximately 20,000 entries with raw data). 2. It is necessary to build features and a classification model of clients into behavioral groups based on this data. 3. The project should be completed in Python. AI & Machine Learning, Python ∙ 5 days 19 hours back ∙ 45 proposals |
IT Automation of VAT Reporting
223 USD
It is necessary to develop a system for automating the transfer of sales data from the CRM to the accounting system Wafeq. The system should import bank and payment reports, automatically reconcile payments with invoices, generate invoices for VAT reporting, and minimize manual… AI & Machine Learning, Python ∙ 6 days back ∙ 52 proposals |
Account reconciliation tool with the bank, cards, and accountantTechnical Assignment: Tool for Reconciling Accounts with Bank, Cards, and AccountantGeneral Goal A local tool (script/small application in Python) is needed, which is manually run once every 1-2 months on my computer and performs reconciliation between: Invoices I issued to… Python, Desktop Apps ∙ 6 days 12 hours back ∙ 44 proposals |