A Python App to upload Images to a Pixelfed instance
Go to file
2023-10-30 02:27:08 +01:00
.gitignore new add 2023-08-23 16:01:06 +02:00
CHANGELOG.md Typo 2023-10-30 02:27:08 +01:00
config.json.example add config.json.example file 2023-10-30 02:19:27 +01:00
pixelfed.ico add file 2023-08-23 15:55:53 +02:00
PixelfedAPI.py remove alt from data json 2023-08-23 16:22:36 +02:00
PixelfedImporter.py Add Option to delete Files after Upload 2023-10-29 03:49:14 +01:00
README.md readability 2023-10-29 03:50:20 +01:00

Pixelfed Importer

a Python app to publish all images from a folder to Pixelfed. This script use Image Meta Tag Description fot the Post Description.

Config

To use this you need a config.json if this cannot be created automatically, here is the structure:

{
  "server_url": "URL TO YOUR PIXELFED",
  "access_token": "YOUR ACCESS TOKEN",
  "image_path": "PATH TO YOUR IMAGES",
  "upload_type": 0|1,
  "delete_file": true|false
}

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.

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.