Th

ThreadsPipePy: Python Library for the Official Instagram Threads API

Hacker News

ThreadsPipePy: Python Library for the Official Instagram Threads API

Introducing ThreadsPipePy, a open-source python library for interacting with the Threads API the easiest way, and it uses the official Meta's Threads API. One of the coolest things about the library is that it will automatically split posts into a X(fka Twitter)-like thread-like post if the text content or the provided files are more than the limit, so one doesn't have to worry about trying to make the text or files meet the limit set by the API, for example if the length of the characters of the text content of the post is more than 500 which is the current limit, and for example 1500 characters, and instead of the post to be sent just like that to the Threads API and which will result in rejection, it will split the 1500 character-long text into different batches ( and in this scenerio 3-4 batches) and send them as a X(fka Twitter) thread-like post with the first batch being the root post, it also does the same thing for the provided files if they are more than 20 which is the current limit for the media files allowed in a post (carousel post). Another cool thing is that you don't have to worry when posting files that are not on public servers because Threads makes it compulsory for the media files (or media items) to be on a public server, so it will first of all upload the local files to GitHub and then delete the files later after uploading the files or if an error occurred and could not send the post, it also supports posting base64 file formats. It also comes with a CLI tool for generating short and long lived access tokens and also for refreshing long lived access tokens before they expire, and it can also automatically update the long lived variable in the provided env file. It can also automatically handle hashtags, like for example if there are multiple hashtags at the end of a post it can automatically strip them out and add only the first one to the end of the post or at the end of each thread post items if the post was turned into a thread-like post, that's because Threads currently only supports 1 hashtag per post And many other cool things, and it is up to date, and I currently use it for my Astronomy Bot account that posts astronomy contents to Threads, if you would like to see the library in action on Threads checkout @astronomybot on Threads The link to the library on Pypi is https://pypi.org/project/threadspipepy/ and the link to the source code on GitHub is https://github.com/paulosabayomi/ThreadsPipe-py Thank you and have a productive rest of the week

Share card

Actual performance

3points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: supports · Missing: reddit linkedin, podcasting, created
87%87% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: code, open · Missing: mac, agents, macos
67%67% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
49%49% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, pipe, io · Missing: https docs, excited, just released
37%37% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
31%31% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Py
Python Library for Kickstarter API63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Python Library for Kickstarter API

Hacker News3
Li
Libgen-API – Python library for Library Genesis68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Libgen-API – Python library for Library Genesis

Hacker News2
A
A Python library for Unicode string collation55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Python library for Unicode string collation

Hacker News4
A
A Python library for accessing Wunderlist67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A Python library for accessing Wunderlist

Hacker News1
Oh
Ohne I/O, a Python 3.4+ coroutine library without any I/O55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ohne I/O, a Python 3.4+ coroutine library without any I/O

Hacker News2
Co
Combinatorix, yet another combinator library in Python55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Combinatorix, yet another combinator library in Python

Hacker News4
Tt
Tt Python library67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Tt Python library

Hacker News1
Py
Python library for GoPro cameras67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Python library for GoPro cameras

Hacker News131
B2
B2blaze – A Backblaze B2 library for Python55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

B2blaze – A Backblaze B2 library for Python

Hacker News359
Py
Python library for parsing Dockerfile65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Python library for parsing Dockerfile

Hacker News2