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.5.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.5-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tootstagram-0.0.5.tar.gz
  • Upload date:
  • Size: 11.8 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.5.tar.gz
Algorithm Hash digest
SHA256 ee7cb6b8e17452740d12f8cce797cfa32f501960e15c54e81f170c1758628bf2
MD5 6b19c014acdc1b42be356f8edb707ada
BLAKE2b-256 174f68ef84be6b50efb9a14572e96329469836869c7c166f76a10af50637ad3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tootstagram-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 14.2 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c35b828704e9bfb727027494a3fbdee55db23a2c2960c9cd01ec3fb7059a5905
MD5 16a710d12fc2eac0efc0d8993b29a906
BLAKE2b-256 f3e880af48d3278128b342c08a8d2dcf7cc4fda0bc2d1f2474eeb7a98ecbb1db

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