A Python App to upload Images to a Pixelfed instance
Go to file
2023-10-30 12:45:37 +01:00
.gitignore new add 2023-08-23 16:01:06 +02:00
CHANGELOG.md add README Change 2023-10-30 02:34:43 +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 Item description for ALT Text 2023-10-30 12:45:37 +01:00
README.md add how to use 2023-10-30 02:33:24 +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.

How to use

  • create new confg file like the example one
  • execute PixelfedImporter.py

if you want to add some default tags create a new tags.txt file with all Default Tags. You also can add a default Text in ths File.

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.