Skip to main content

Automatically Repost Content From Instagram to Twitter

Project description

PyPI Version Documentation Status Activity

Automatically Repost Content From Instagram to Twitter

Ever tried sharing an Instagram post to Twitter, only to find out that all you tweeted was a link, and not the actual photo/video?

Sharing an Instagram post to Twitter directly from the Instagram app. Only a link appears. It could be literally anything, nobody will click it.

InstaTweet shares the actual content of the post. Not just a link to it.

Sharing an Instagram post to Twitter using InstaTweet. The actual photo or video appears in the tweet. It's a thicc cat, very handsome. Nobody will click the link, but they'll definitely see this bad boy.

With InstaTweet, you can rest easy knowing that, although nobody will click the link, they’ll at least see what you posted.

What’s InstaTweet?

InstaTweet is a customizable tool to automatically repost content from Instagram to Twitter.

Simply create a Profile, configure the mandatory-settings, and add_users() to repost from

from InstaTweet import Profile

# Create a new (local) Profile
>>> profile = Profile('myProfile')

# Configure the required settings (at minimum)
>>> profile.twitter_keys = twitter_api_keys
>>> profile.session_id = '6011991A'

# Add at least one Instagram account to repost from
>>> profile.add_users('the.dailykitten')

Once configured, the Profile can be used to initialize and start() an InstaTweet object

from InstaTweet import InstaTweet

# Directly initialize with the Profile from above
>>> insta_tweet = InstaTweet(profile)

# Or, save the Profile...
>>> profile.save()

Saved Local Profile myProfile

# ...then InstaTweet.load() the settings in (by Profile name)
>>> insta_tweet = InstaTweet.load(profile_name="myProfile")

# Run InstaTweet by calling start()
>>> insta_tweet.start()
https://user-images.githubusercontent.com/96394652/187158617-f45761ab-3aa9-472f-a6fb-a99cd0ce900c.png

As InstaTweet runs, its progress will be logged to console:

Starting InstaTweet for Profile: myProfile
Checking posts from @the.dailykitten
...
Finished insta-tweeting for @the.dailykitten
All users have been insta-tweeted

Okay… But Why? 😟

Documentation

The rest of this README, the API documentation, and snippets can all be found on Read the Docs

I put a lot of time into creating the documentation for this package, it was a struggle, so it’d mean a lot to me if you could please continue reading there! 🥰

Installation

To install using pip:

pip install insta-tweet

Please note that InstaTweet requires Python >= 3.8

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

insta-tweet-2.0.0b36.tar.gz (17.3 kB view details)

Uploaded Source

Built Distributions

insta_tweet-2.0.0b36-py3.10.egg (43.3 kB view details)

Uploaded Source

insta_tweet-2.0.0b36-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file insta-tweet-2.0.0b36.tar.gz.

File metadata

  • Download URL: insta-tweet-2.0.0b36.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.1

File hashes

Hashes for insta-tweet-2.0.0b36.tar.gz
Algorithm Hash digest
SHA256 f65f99ed5dd809f657b60f973c198e755fefdf891ee30bfd200b73f64d5765df
MD5 bfd3bcd9b2308d694d15336689c270d9
BLAKE2b-256 a93bddd0464bf9286edccb04704f82e2fac674bffe4fb58f99ff4e8799edde4c

See more details on using hashes here.

File details

Details for the file insta_tweet-2.0.0b36-py3.10.egg.

File metadata

  • Download URL: insta_tweet-2.0.0b36-py3.10.egg
  • Upload date:
  • Size: 43.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.1

File hashes

Hashes for insta_tweet-2.0.0b36-py3.10.egg
Algorithm Hash digest
SHA256 c7a78f220d1ed07fe1456c78ac7456d4f348a0c476a10562000aaeb9a670d476
MD5 d1ced6674ce1dbf2c97f10ee8b2d179d
BLAKE2b-256 18a7ef6b3098c48fb433787220ee59e011e71ba8f423e9c3c6efd9e3ed6dd3c5

See more details on using hashes here.

File details

Details for the file insta_tweet-2.0.0b36-py3-none-any.whl.

File metadata

File hashes

Hashes for insta_tweet-2.0.0b36-py3-none-any.whl
Algorithm Hash digest
SHA256 8d467e97f772688fe318510ca12696e1fb58a3d90b4673bf764622055ee135bd
MD5 40635b059f7506ecdb4544de1583cc21
BLAKE2b-256 455cbc1636ec8bae2fe22a358ea99a41cfc8f8624d4d6113aebdc928456dca60

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