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

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.4.tar.gz (11.8 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.4-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tootstagram-0.0.4.tar.gz
Algorithm Hash digest
SHA256 324b6a0a8426d8ce02d9bd77648df48360e25a527bf66397f1d842a9122516f1
MD5 666cef0f76ee074352ececee106ddb9e
BLAKE2b-256 dcd24a18afd1215aaf1e3b7be0f8ffc9220212c2f4f144751a8381761082f5e7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tootstagram-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a5e04996f5a630c8aa7636cc2f73d0914c1651ccbba68a25f3e96ef03d9431d8
MD5 451e86d5d34349fc0b324820d009b40d
BLAKE2b-256 9920d90cb2eb1e2aaab94fb9aa50210fb77d4ba368916ff3d75f9ef81b717a74

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