Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boreq/archive_chan
A self-hosted imageboard archive implemented as a Django app.
https://github.com/boreq/archive_chan
Last synced: about 1 month ago
JSON representation
A self-hosted imageboard archive implemented as a Django app.
- Host: GitHub
- URL: https://github.com/boreq/archive_chan
- Owner: boreq
- License: gpl-2.0
- Created: 2014-05-23T18:08:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-29T19:15:17.000Z (about 10 years ago)
- Last Synced: 2024-04-16T02:21:57.422Z (7 months ago)
- Language: Python
- Homepage:
- Size: 7.7 MB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Archive Chan
Archive Chan is a 4chan archive implemented as a Django application.
This project will most likely receive no further updates. [Flask version](https://github.com/boreq/archive_chan_flask) is actively developed instead.![Board view - catalog](docs/screens/readme.png "Board view - catalog")
[More screenshots](http://archivechan.imgur.com/)## Installation
### Required software versions
Application was written with Python 3 and Django 1.6+ in mind. At this point it does not support Python 2.### Installing the application
Installation is exactly the same as an installation of any Django application. Simply copy `archive_chan` directory to your project directory and add `archive_chan` to the `INSTALLED_APPS` list in the project settings file. If you want to set up the web server and everything else from scratch follow the detailed guide located in the `docs` directory.## Configuration
Application specific settings are located in the `archive_chan/settings.py` file. Instructions on overriding those settings are provided in that settings file.Django commands `archive_chan_update` and `archive_chan_remove_old_threads` must be called in regular intervals by CRON or similar daemon. Recommended intervals are about 10-20 minutes and 1-2 hours respectfully.
WARNING: first `archive_chan_update` will take a lot of time to complete because it will have to scrap all threads in the specified boards. You might want to run it manually a couple of times in a row with `--progress` flag to see what is going on. After the command will finally take relatively short time to execute enable CRON and don't worry about it anymore.
## Usage
Actions described in this section are performed through the Django administration panel. You will see a lot of irrelevant tables there with debug mode enabled so you might want to disable it.First you have to specify the boards which are supposed to be archived. Threads are updated in the specified intervals: script downloads a catalog for each of the specified boards, checks which threads have to be updated and adds new posts to the database. Old threads will be removed after the time specified in the board settings. Saved threads will be preserved and will not be deleted. You can also specify triggers which will automatically tag or save a thread if specified conditions arise. Logged in users might manually save threads and add or remove tags through the thread view.
## Changing the code
All code improvements are greatly appreciated.You have to run `tools/make.py` after changing static JS or CSS files. Required files will be preprocessed, minified and concatenated. This script requires `yui-compressor`, `sass` and `cat`.