Reimplementing (some) functionalities of italy.indymedia.org v1.0 in python

boyska 65bb7abe2d home 3 years ago
static 5df1bc00b2 some bootstrap love 3 years ago
templates 65bb7abe2d home 3 years ago
.gitignore 2bc775fedb php dependencies 3 years ago
README.md 09178aacae readme 3 years ago
app.py 65bb7abe2d home 3 years ago
composer.json 2bc775fedb php dependencies 3 years ago
composer.lock 2bc775fedb php dependencies 3 years ago
parse_comment.php 49fb82971b comment has titles 3 years ago
parse_one.php 1cad2bd291 parse comments, too 3 years ago
pyproject.toml 1bc25e2a08 stile 3 years ago
requirements.txt ac5d8a3cf7 initial commit 3 years ago

README.md

sf-active fa un file per ogni articolo.

L'approccio di questo progetto è parsasre il vecchio PHP, trasformando tutto in un DB SQLite.

A quel punto si può riscrivere l'interfaccia.

Creare il DB

find /path/to/sf-active/italy/website/news/ -type f -name '*_comment.php' |
    php parse_comment.php italy.db

Questo comando parsa le news con tanto di commenti. C'è qualche problemino con gli orari, soprattutto dentro i commenti, per il resto sembrano andare.

Interfaccia

pip3 install -r requirements.txt
flask run