Skip to content

erma0x/DemoUpdate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ecco un README.md pulito e pronto per GitHub, pensato per la versione production con Flask + Gunicorn + Render.

# Web Title Scanner

Piccolo servizio web in Flask che legge una lista di URL da file e restituisce i titoli delle pagine in forma tabellare tramite interfaccia web.

Il progetto è pensato per essere:
- minimale
- deployabile su Render / VPS
- facilmente estendibile
- adatto a uso personale o monitoring leggero

---

## 🚀 Funzionalità

- Lettura automatica URL da `urls.txt`
- Fetch concorrente delle pagine web
- Estrazione del tag `<title>`
- Ordinamento risultati:
  - prima siti con status `200`
  - poi ordine alfabetico del dominio
- Frontend moderno con dashboard HTML
- Supporto produzione con Gunicorn

---

## 📁 Struttura progetto

project/ │ ├── app.py ├── urls.txt ├── requirements.txt │ ├── templates/ │ └── index.html │ └── static/ └── app.js


---

## 📄 urls.txt

Inserisci qui i siti da monitorare:

https://openai.com https://github.com https://google.com example.com


---

## ⚙️ Installazione locale

```bash
python3 -m venv venv
source venv/bin/activate   # Windows: venv\Scripts\activate

pip install -r requirements.txt

▶️ Avvio locale

python app.py

Oppure in modalità produzione locale:

gunicorn app:app

🌐 Deploy su Render

1. requirements.txt

Flask
gunicorn
requests
beautifulsoup4

2. Start Command su Render

gunicorn app:app

🧠 Architettura

Browser
   ↓
Flask (Gunicorn)
   ↓
requests + BeautifulSoup
   ↓
urls.txt

⚠️ Note importanti

Persistenza file

urls.txt è un file statico:

  • viene letto ad ogni richiesta
  • non viene modificato dall’app
  • aggiornamenti tramite Git o deploy

Produzione

Usa sempre Gunicorn, NON Flask dev server.


📦 Requisiti

  • Python 3.9+
  • Flask
  • requests
  • beautifulsoup4
  • gunicorn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors