Vichan Scrapper
scrapper for archiving data from vichan instances with a minimalistic frontend included to ease local viewing
Demo
Disclaimer
The scrapper worked pretty well for the specific instance it was built around / tested on, however it's possible that it will fail on different version (which is unknown) and or configuration.
Requirements
- Python3
- Sqlite3
- Apache2 or PHP (see Installation/Server)
Installation
- Meet the requirements
Base
$ make init # initialize databse and python environment
$ make clone # create tarballs for distribution
Server
For yourself
- If you don't have to have the front end to be publicly facing, its easiest to use the built in server of the PHP interpreter.
- Navigate to the front end's directory
$ cd <vichan_scrapper>/front_end/
- Deploy the PHP server
$ php -S localhost:8000
- Access it through your browser on the address: localhost:8000
In production
- Run apache
- Add configs
$ make server
Schedule scrapper
$ make service
- the default is to scrapp every hour, and attempt to get missing files every 3.5 hours
- for personilazation see scrapper/service/cron.m4
Configuration
Scrapper
Front end
- front_end/config.php
- posts_per_page : int
- search_enabled : boolean
Recommendations
- use XFS
Description
Languages
Python
42.1%
PHP
29.2%
JavaScript
20.3%
CSS
2.8%
Makefile
2.4%
Other
3.2%