A tool to archive image galleries from users from different sites
Find a file
2024-12-27 21:43:19 +01:00
.forgejo/ISSUE_TEMPLATE Add: feature request template 2024-05-03 19:18:08 +02:00
.vscode Add: more words to spell checker 2024-05-07 23:07:08 +02:00
archivist Add: pdf view to submission view 2024-12-27 21:43:19 +01:00
.dockerignore Add: tmp dir to docker ignore 2024-10-19 23:57:58 +02:00
.gitignore Add: cookie folder to git ignore 2023-10-21 18:29:48 +02:00
docker-compose-dev.yml Remove: depricated "version" from compose 2024-11-04 11:26:35 +01:00
Dockerfile-Dev Add: basic dev dockerfile 2023-10-21 10:51:59 +02:00
env-sample Add: env sample file 2022-09-22 14:06:05 +02:00
gallery-dl.conf Fix: twitter include config for gallery-dl 2024-10-14 21:22:32 +02:00
README.md Add: django makemigrations step to dev docs 2024-11-04 10:27:41 +01:00
requirements.txt Add: sorl-thumbnail to pip requirements 2024-07-08 22:03:43 +02:00

Gallery-Archivist


Please don't upload to GitHub

My try to make a Social media archiving web tool with django and gallery-dl

Features / Roadmap

Note! This is still in early development so stuff will change.

  • Scraping sites primarily with gallery-dl, but also for other links found in posts.
  • Scheduled tasks
  • Site support
  • Media support and previews
    • Flash (With Ruffle)
    • PDF (With HTML embed tag)
    • Image (With HTML img tag)
    • Video (With FluidPlayer)
    • Compressed archive previews
    • other text documents
    • Easy download list of all files of post and user

Trademarks

External Sites

The logos of external sites used in Gallery-Archivist are trademarks of their respective owners. The use of these trademarks does not indicate endorsement of the trademark holder by the repository, its owners or contributors.
Gallery-Archivist is not endorsed by or affiliated with any of the trademark holders.


Usage

Run without Docker

  • Step 1: Clone repo
git clone https://git.aroy-art.com/Aroy/Gallery-Archivist.git
  • Step 2: Change dir to the new cloned repo
cd Gallery-Archivist
  • Step 3: Make a python environment
python3 -m venv venv  
  • Step 4: Activate the new python environment
source ./venv/bin/activate
  • Step 5: Install python dependencies
pip install -r requirements.txt
  • Step 6: Copy environment config file and change it to your liking
cp env-sample .env
  • Step 7: Change directory to ./archivist
cd ./archivist
  • Step 8: Run django server
python3 manage.py runserver

Manual Import Data

It is possible to import data from saved gallery-dl json files

  • Step 1: Make sure that you are in the root folder of the project.

  • Step 2: Make sure to activate the python environment.

source ./venv/bin/activate
  • Step 3: Change directory to ./archivist
cd ./archivist
  • Step 4: Import the json data and media file from gallery-dl
    replace <path> with the path of the folder or json file to import
python manage.py import_data <path>

Development

Without Docker

Note! Instructions are made for a modern linux environment.

  • Step 0: Make sure that you have installed the dependencies.
    You need git, python, python-virtualenv, redis

  • Step 1: Clone repo

git clone https://git.aroy-art.com/Aroy/Gallery-Archivist.git
  • Step 2: Change dir to the new cloned repo
cd Gallery-Archivist
  • Step 3: Make a python environment
python3 -m venv venv  
  • Step 4: Activate the new python environment
source ./venv/bin/activate
  • Step 5: Install python dependencies
pip install -r requirements.txt
  • Step 6: Copy environment config file and change it to your liking
cp env-sample archivist/.env
  • Step 7: Change directory to archivist
cd archivist
  • Step 8: Crate and Run django database migrations
python manage.py makemigrations
python manage.py migrate
  • Step 9: Start the redis server
redis-server
  • Step :10 Open another shell inside of archivist/ folder and start the django server
python3 manage.py runserver
  • Step :11 Open another shell inside of archivist/ folder and start the celery worker
celery -A core worker -l info
  • Step :12 Open another shell inside of archivist/ folder and start the celery beat
celery -A core beat -l info