2024-01-25 18:37:18 +01:00
2024-01-25 18:37:18 +01:00
2024-01-25 18:37:18 +01:00
2024-01-25 18:37:18 +01:00
2024-01-25 18:37:18 +01:00
2024-01-25 18:37:18 +01:00
2024-01-25 18:37:18 +01:00
2024-01-25 18:37:18 +01:00
2024-01-25 18:37:18 +01:00
2024-01-25 18:37:18 +01:00

Vichan Scrapper

scrapper for archiving data from vichan instances with a minimalistic frontend included to ease local viewing

Demo

frontend_index_demo

frontend_board_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

  1. 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.
  1. Navigate to the front end's directory
$ cd <vichan_scrapper>/front_end/
  1. Deploy the PHP server
$ php -S localhost:8000
  1. Access it through your browser on the address: localhost:8000
In production
  1. Run apache
  2. 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
No description provided
Readme 6 MiB
Languages
Python 42.1%
PHP 29.2%
JavaScript 20.3%
CSS 2.8%
Makefile 2.4%
Other 3.2%