Skip to main content

Import Flickr data into a Pixelfed account

Project description

Pixelfeeder

Synopsis

Flickr is a popular photohosting site.

Pixelfed is a photohosting platform too, but federative one. It means it has plenity of community-driven instances and you able to even set up your own.

Pixelfeeder helps to import user's photo from Flickr to Pixelfed instance. Pixelfeeder has a CLI for bulk operations and a GUI for more grain control.

screenshot

Installation

pip3 install pixelfeeder

Preparing

  1. Get your Flickr data as described in documentation in seciton "Download all your content".

    You will get a little archive with metadata JSON files and one or more with images.

  2. Create a token with write permission for your Pixelfed account. It may be done in Edit profile -> Applications -> Personal access token block.

  3. Fill the options on the settings tab of Pixelfeeder GUI. Or place the obtained token file with the URL of your Pixeled instance into a config.yaml manually. See the example config.yaml

~/.config/pixelfeeder/config.yaml contains a sensitive token

Ready, steady...

FYI: Licenses of your Pixelfed photos may be changed at once with Edit profile -> Media section or you may just set desired option before uploading.

Pixelfeeder allows to reorganize caption entries with the caption_order config option. Also caption_datetime_format defines format of the date_taken entry. It should be string as in the Python datetime documentation. The default specification %c respects locale, so if it is e.g. desirable to have a lating string, environment variable may be used:

LC_CTYPE=C pixelfeeder-gui

Use ignore_ssl_verify to come through self-signed certificate.

CLI

pixelfeeder --images-dir IMAGES_DIR [--metadata-dir METADATA_DIR] [--config-file CONFIG_FILE] [--dry-run] [--help]

To just upload all the data obtained from the Flickr profile you may use the command:

pixelfeeder --images-dir PATH_TO_FLICKR_DATA

Both Flickr JSON files and corresponding images should be somewhere inside the PATH_TO_FLICKR_DATA directory (nested dirs supported).

It is possible also to prepare a directory with selected photo files to upload only some picture:

pixelfeeder --images-dir PATH_TO_CHOOSEN_IMAGES --metadata-dir PATH_TO_FLICKR_METADATA

The pixelfeeder command has the -n / --dry-run flag. With the flag no data are uploading, but output is more comprehensive.

To know all the arguments use the -h / --help flag.

GUI

pixelfeeder-gui [--config-file CONFIG_FILE] [--verbose] [--safe-mode] [--help]

Graphical interface has mostly the same options as the CLI, but upoads images one-by-one in interactive mode. User able to correct caption and visibility of a post. Tool will keep position between sessions.

Edits are not persistent for now, so it is better to make corrections just before uploading

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pixelfeeder-0.1.1.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

pixelfeeder-0.1.1-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file pixelfeeder-0.1.1.tar.gz.

File metadata

  • Download URL: pixelfeeder-0.1.1.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for pixelfeeder-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6a06d518fe2d7b11b6a168802593c602cdcdaff19c946a9c9e35c6b97d5e99f8
MD5 fc4acf98008bd746ddb953bde470b607
BLAKE2b-256 9d8924830adff3e9a4d5846dfd9601d7e34f54a908c9ec239d47549136a1f24d

See more details on using hashes here.

File details

Details for the file pixelfeeder-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pixelfeeder-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for pixelfeeder-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0a22806063a7542619dd59bdbbd7198c5918d0a9a693d98a2e851dd8f4306d2
MD5 d5c8be7b78514be4449ce077bc222e45
BLAKE2b-256 31b7fdc64a64108aaa2b02c3ed3641b142eaa661e4689503ad63222dd69cd10f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page