Skip to main content

MetaThreads is Meta Threads-API to interact with Instagram threads app, extract data and perform actions. The library is written in python. MetaThreads API lets you fetch user's threads, thread replies, user's data, user's friends. Actions like posting a thread, like/unlike threads etc. can easily be perfomed with the api.

Project description

MetaThreads

Overview

MetaThreads is Meta Threads-API to interact with Instagram threads app, extract data and perform actions. The library is written in python. MetaThreads API lets you fetch user's threads, thread replies, user's data, user's friends. Actions like posting a thread, like/unlike threads etc. can easily be perfomed with the api. Check full list of features below.

Note : Use it on Your Own Risk. Avoid using it in excess. TRY TESTING IT WITH SOME DUMMY/FAKE ACCOUNT FIRST.

Installation

Install MetaThreads with pip

pip install metathreads

Usage/Examples

python quickstart.py

OR

from metathreads import MetaThreads

MetaThreads()

Example

from metathreads import MetaThreads

threads = MetaThreads()
threads.login("username","password")

# check logged in user
threads.me

# get thread details
threads.get_thread("thread_id or thread_url")
"""
Here is an example
thread_url > https://www.threads.net/t/CuP48CiS5sx
thread_id > 3138977881796614961

It works with both id and url.
thread.get_thread(3138977881796614961)
thread.get_thread(https://www.threads.net/t/CuP48CiS5sx)

YOU CAN ALSO THROW IN MULTIPLE INPUTS AT A SINGLE TIME (WORKS WITH EVERY METHOD i.e. liking, posting, deleting , extracting data - all functions), IT SUPPORTS ASYNC/AWAIT (CONCURRENT REQUESTS.)
Just make sure you don't hit the API rate limits.

So getting multiple threads is as easy as passing a list.

threads.get_thread([3138977881796614961,3140525365550562013])
"""

# like a thread
threads.like_thread(3138977881796614961)

# repost a thread
threads.repost_thread([3138977881796614961,3140525365550562013])

# post a thread
threads.post_thread(thread_caption="My First Thread..")

#CHECK DOCUMENTATION FOR FULL FUNCTIONALITY.

Documentation

Check out step by step guide.

Documentation

Configuration

Example - Config Usage

from metathreads import config

config.PROXY = {"http":"127.0.0.1","https":"127.0.0.1"}
config.TIMEOUT = 10

Check out configuration docs for the available settings.

Configurations

Features

  • Get Threads
  • Get Thread Replies
  • Get User's Threads
  • Get User's Threads Replies
  • Get User's Data (Email, Bio, Name etc.)
  • Get User's Followers/Following
  • Like/Unlike Threads
  • Follow/Unfollow Users
  • Post / Delete Threads
  • Repost Threads / Destroy Reposted Threads
  • Perform User Search
  • Get Notifications and much more.

Authors

Feedback

If you have any feedback, please reach out to us at hello@sarabjitdhiman.com or contact me on Social Media @iSarabjitDhiman

Support

For support, email hello@sarabjitdhiman.com

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

metathreads-0.0.2.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metathreads-0.0.2-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file metathreads-0.0.2.tar.gz.

File metadata

  • Download URL: metathreads-0.0.2.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for metathreads-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ac28b50dcb71160e5169bf303a357bc5ba0a91a1e55a76f935bc0fd521763322
MD5 1cc69c9bd5ac98b492462d5ccdfa8430
BLAKE2b-256 8aa26fca453741659264b4d46a77c314c17bbd7f5a8e1c083602712abe4992e3

See more details on using hashes here.

File details

Details for the file metathreads-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: metathreads-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for metathreads-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c52c82ef3a22613970ba24758cb21de32d7a120572e7375e97990a9df35c721
MD5 abca2d73ad33c1ae2f61e3e1a20d5ad0
BLAKE2b-256 f8f46e29fdd23376d046ca314208742e0d8b54c89e6aca72077c94f10591b8d0

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