Skip to main content

Duplicate posted images from Mastodon to Instagram

Project description

Tootstagram

https://cvs.sonologic.net/gmc/tootstagram

Installation

pip install tootstagram

Usage

Create a configuration file name tootstragram.toml based on the example tootstragram.toml.example and place it in any of these locations:

  • In your home or user directory
  • In a subdirectory .tootstagram under your home or user directory
  • In the current working directory

The tool will search each of these locations in that order.

Then simply invoke the tool with:

tootstagram

This will fetch the feed from the Mastodon account and post any images that were not already posted to the Instagram account.

Security

Make sure you keep the configuration file as well as the .tootstagram directory in your home or user dir private. The configuration file contains your instagram username and password, and the .tootstagram directory contains a file session.json which should be treated as equivalent to your username and password.

Limitations

  • Only posts toots with images, not videos (I don't do videos myself)
  • Any html tags in the toot are crudely removed by a simple regexp
  • If a toot has multiple images, but not all have alt text, none of the instagram posts will have alt text (because it is impossible to derive from the feed which alt text belongs to which image)
  • Editing a toot will not alter on or repost to instagram
  • Only posts listed toots, as those are the only ones available from the feed

Planned features

  • Hashtag translation

Releasing

python -m build
python3 -m twine upload dist/*

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

tootstagram-0.0.7.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tootstagram-0.0.7-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file tootstagram-0.0.7.tar.gz.

File metadata

  • Download URL: tootstagram-0.0.7.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for tootstagram-0.0.7.tar.gz
Algorithm Hash digest
SHA256 c8e535eacfb10cb54e1a787a8f34c6ae2df66593100465cf4c01879097243fd3
MD5 1ef48f72e210c64c93b72c82cff66965
BLAKE2b-256 a698c645b734e11d91aea285cbe572a28e4141b5a715129fd26b88e647b4fe9f

See more details on using hashes here.

File details

Details for the file tootstagram-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: tootstagram-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for tootstagram-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cceb7473635aceedd008cd76e095fb8a1c3b2335c322728921139226b4b6fe59
MD5 9894450f9d8aa737da3535f528c72a79
BLAKE2b-256 ab05bbecb71b106ab218aa94370cdec840cf6a4d8af016bb62f7682f85356617

See more details on using hashes here.

Supported by

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