Gallery-Archivist/README.md

149 lines
2.6 KiB
Markdown
Raw Normal View History

2022-09-03 15:06:44 +00:00
# Gallery-Archivist
---
2023-10-20 08:22:21 +00:00
[![Please don't upload to GitHub](https://nogithub.codeberg.page/badge.svg)](https://nogithub.codeberg.page)
2022-09-03 15:06:44 +00:00
2022-09-20 10:35:48 +00:00
My try to make a Social media archiving web tool with django and gallery-dl
2022-09-22 12:06:56 +00:00
2023-08-02 13:59:03 +00:00
## Features / Roadmap
2023-10-21 19:27:31 +00:00
2023-08-24 15:33:37 +00:00
*Note!* This is still in early development so stuff **will** change.
2023-08-02 13:59:03 +00:00
2023-10-21 19:27:31 +00:00
- [ ] Scraping sites
- [ ] Scheduled tasks
- [ ] Site support
- [ ] [Furaffinity](https://www.furaffinity.net)
- [ ] [Twitter/X](https://twitter.com/)
- [ ] Media support and previews
- [x] Flash (With [Ruffle](https://github.com/ruffle-rs/ruffle/))
- [x] PDF (With HTML embed tag)
- [X] Image (With HTML img tag)
- [ ] other text documents
2022-09-22 12:06:56 +00:00
---
2023-10-06 08:09:01 +00:00
## Usage
2023-10-21 19:27:31 +00:00
2023-10-06 08:09:01 +00:00
### Run without Docker
2023-10-21 19:27:31 +00:00
- **Step 1:** Clone repo
2023-10-06 08:09:01 +00:00
```bash
git clone https://git.aroy-art.com/Aroy/Gallery-Archivist.git
```
2023-10-21 19:27:31 +00:00
- **Step 2:** Change dir to the new cloned repo
2023-10-06 08:09:01 +00:00
```bash
cd Gallery-Archivist
```
2023-10-21 19:27:31 +00:00
- **Step 3:** Make a python environment
2023-10-06 08:09:01 +00:00
```bash
python3 -m venv venv
```
2023-10-21 19:27:31 +00:00
- **Step 4:** Activate the new python environment
2023-10-06 08:09:01 +00:00
```bash
source ./venv/bin/activate
```
2023-10-21 19:27:31 +00:00
- **Step 5:** Install python dependencies
2023-10-06 08:09:01 +00:00
```bash
pip install -r requirements.txt
```
2023-10-21 19:27:31 +00:00
- **Step 6:** Copy environment config file and change it to your liking
2023-10-06 08:09:01 +00:00
```bash
cp env-sample .env
```
2023-10-21 19:27:31 +00:00
- **Step 7:** Change directory to `./archivist`
2023-10-06 08:09:01 +00:00
```bash
cd ./archivist
```
2023-10-21 19:27:31 +00:00
- **Step 8:** Run django server
2023-10-06 08:09:01 +00:00
```bash
python3 manage.py runserver
```
### Manual Import Data
It is possible to import data from saved gallery-dl json files
2023-10-21 19:27:31 +00:00
- **Step 1:** Make sure that you are in the root folder of the project.
- **Step 2:** Make sure to activate the python environment.
2023-10-06 08:09:01 +00:00
```bash
source ./venv/bin/activate
```
2023-10-21 19:27:31 +00:00
- **Step 3:** Change directory to `./archivist`
2023-10-06 08:09:01 +00:00
```bash
cd ./archivist
```
2023-10-21 19:27:31 +00:00
- **Step 4:** Import the json data and media file from gallery-dl
2023-10-06 08:09:01 +00:00
replace `<path>` with the path of the folder or json file to import
```bash
python manage.py import_data <path>
```
2022-09-22 12:06:56 +00:00
## Development
2023-10-21 19:27:31 +00:00
### Without Docker
2022-09-22 12:06:56 +00:00
*Note!* Instructions are made for a modern linux environment.
2023-10-21 19:27:31 +00:00
- **Step 1:** Clone repo
2022-09-22 12:06:56 +00:00
```bash
git clone https://git.aroy-art.com/Aroy/Gallery-Archivist.git
```
2023-10-21 19:27:31 +00:00
- **Step 2:** Change dir to the new cloned repo
2022-09-22 12:06:56 +00:00
```bash
cd Gallery-Archivist
```
2023-10-21 19:27:31 +00:00
- **Step 3:** Make a python environment
2022-09-22 12:06:56 +00:00
```bash
python3 -m venv venv
```
2023-10-21 19:27:31 +00:00
- **Step 4:** Activate the new python environment
2022-09-22 12:06:56 +00:00
```bash
source ./venv/bin/activate
```
2023-10-21 19:27:31 +00:00
- **Step 5:** Install python dependencies
2022-09-22 12:06:56 +00:00
```bash
pip install -r requirements.txt
```
2023-10-21 19:27:31 +00:00
- **Step 6:** Copy environment config file and change it to your liking
2022-09-22 12:06:56 +00:00
```bash
cp env-sample .env
```
2023-10-21 19:27:31 +00:00
- **Step 7:** Run django server
2022-09-22 12:06:56 +00:00
```bash
python3 archivist/manage.py runserver
2023-10-21 19:27:31 +00:00
```