2023-08-16 00:01:54 +02:00
|
|
|
# Pixelfed Importer
|
2023-08-15 23:57:22 +02:00
|
|
|
|
2023-10-29 03:25:04 +01:00
|
|
|
a Python app to publish all images from a folder to Pixelfed.
|
|
|
|
This script use Image Meta Tag Description fot the Post Description.
|
2023-08-15 23:57:22 +02:00
|
|
|
|
2023-08-16 00:01:54 +02:00
|
|
|
## Config
|
|
|
|
|
2023-08-23 15:45:41 +02:00
|
|
|
To use this you need a config.json if this cannot be created automatically, here is the structure:
|
2023-08-15 23:57:22 +02:00
|
|
|
|
|
|
|
```JSON
|
|
|
|
{
|
|
|
|
"server_url": "URL TO YOUR PIXELFED",
|
|
|
|
"access_token": "YOUR ACCESS TOKEN",
|
2023-10-29 03:25:04 +01:00
|
|
|
"image_path": "PATH TO YOUR IMAGES",
|
2023-10-29 03:49:14 +01:00
|
|
|
"upload_type": 0|1,
|
|
|
|
"delete_file": true|false
|
2023-08-15 23:57:22 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2023-10-29 03:25:04 +01:00
|
|
|
upload_type 0 creates 1 post for each image from your folder (image_path)
|
|
|
|
upload_type 1 creates 1 post with all images from your folder (image_path)
|
|
|
|
Uploads at Type 1 only use Image Meta Tag Description from the first image for the post description.
|
|
|
|
|
2023-08-16 00:01:54 +02:00
|
|
|
## tags
|
|
|
|
|
|
|
|
You can add a tags.txt, in which standard tags can be stored, which will always be added at the end of a post.
|