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

boyska 49fb82971b comment has titles il y a 3 ans
templates 49fb82971b comment has titles il y a 3 ans
.gitignore 2bc775fedb php dependencies il y a 3 ans
README.md 09178aacae readme il y a 3 ans
app.py 49fb82971b comment has titles il y a 3 ans
composer.json 2bc775fedb php dependencies il y a 3 ans
composer.lock 2bc775fedb php dependencies il y a 3 ans
parse_comment.php 49fb82971b comment has titles il y a 3 ans
parse_one.php 1cad2bd291 parse comments, too il y a 3 ans
pyproject.toml 1bc25e2a08 stile il y a 3 ans
requirements.txt ac5d8a3cf7 initial commit il y a 3 ans

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