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

boyska 1bc25e2a08 stile 3 years ago
templates 747d744cac stile commenti 3 years ago
.gitignore 2bc775fedb php dependencies 3 years ago
README.md 09178aacae readme 3 years ago
app.py 1925a89cb5 DB_URI configurabile 3 years ago
composer.json 2bc775fedb php dependencies 3 years ago
composer.lock 2bc775fedb php dependencies 3 years ago
parse_comment.php 14ade336e6 parser: fix comment author 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