Automatically Repost Content From Instagram to Twitter
Project description
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?
⚠ Humiliating 🤮 |
---|
That could be literally anything. Nobody will click it. |
InstaTweet shares the actual content of the post. Not just a link to it.
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 mandatory 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')
# Save the Profile [optional]
>>> profile.save()
Saved Local Profile myProfile
Once configured, the Profile can be used to initialize and start() InstaTweet:
from InstaTweet import InstaTweet
# Directly initialize with a Profile object
>>> insta_tweet = InstaTweet(profile)
# Or load a saved Profile by name
>>> insta_tweet = InstaTweet.load("myProfile")
# Run InstaTweet by calling start()
>>> insta_tweet.start()
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? 😟
🐥 But Why? 🤨 |
---|
InstaTweet has two main use cases:
Regardless of your intention, InstaTweet will detect new posts from the users you specify, download them, and repost them to Twitter. |
…
Other Use Case: The InstaClient
The package’s custom InstaClient can also be used as a standalone Instagram scraper
from InstaTweet import InstaClient
>>> ig = InstaClient(session_id="kjfdn309wredsfl")
>>> user = ig.get_user('dailykittenig')
>>> print(user)
<InstaTweet.instauser.InstaUser object at 0x000002B9A1101330>
>>> print(user.posts)
>>> ig.download_post(user.posts[0])
[<InstaTweet.instapost.InstaPost object at 0x000002B9A250F5E0>, ...]
Downloaded post https://www.instagram.com/p/Clht4NRrqRO by dailykittenig to C:\\path\\to\\insta-tweet\\downloads\\2981866202934977614.mp4
…
Installation
To install using pip:
pip install insta-tweet
Please note that InstaTweet requires Python >= 3.8
…
Documentation
The rest of this README, the API documentation, and snippets can all be found on Read the Docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file insta-tweet-2.1.3.tar.gz
.
File metadata
- Download URL: insta-tweet-2.1.3.tar.gz
- Upload date:
- Size: 18.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1147fc246fdd5359d05b2e7b4e82e0da8c20a1dec7c16618b23b6e8cd38720de |
|
MD5 | 69fe4ec633f97ca301d9f439101250a7 |
|
BLAKE2b-256 | d9eba2de3ccddf248dcdd344f4ee97c07f614d90de3080af19cede82e8ecdeb1 |
File details
Details for the file insta_tweet-2.1.3-py3.10.egg
.
File metadata
- Download URL: insta_tweet-2.1.3-py3.10.egg
- Upload date:
- Size: 46.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3603cf2c70da6b931fd0fec37b5b87f7afe018127b60b80e66fe691c7cb93062 |
|
MD5 | 623a630d06f74172651d05fd50f09b13 |
|
BLAKE2b-256 | 861d553aa0b4bd90e00b2535260bc822ad3c78292d7678dee0e5121c6e7b8470 |
File details
Details for the file insta_tweet-2.1.3-py3-none-any.whl
.
File metadata
- Download URL: insta_tweet-2.1.3-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b93596e2f4b84816d90dc1d85c0277d762e6d0348efc4c1a68ebd0949bfc9d1 |
|
MD5 | 771c08bc04834624c170ba064f2d761a |
|
BLAKE2b-256 | 841d7598a1165c1c3382a260c9351b2beef762df4331aa781d6b293c43454094 |