GithubHelp home page GithubHelp logo

isarabjitdhiman / metathreads Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 28 KB

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.

License: MIT License

Python 100.00%
instagram-threads threads threads-api threads-client threads-net meta-threads barcelona instagram barcelona-api

metathreads's Introduction

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 [email protected] or contact me on Social Media @iSarabjitDhiman

Support

For support, email [email protected]

metathreads's People

Contributors

isarabjitdhiman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

metathreads's Issues

Hi. Regarding dependancy

Hi.
It is nice library. Thanks.
Thins to request that the packages dependancy make trouble on the system which is old version mix.
For example, beautifulsoap keep going upgrade,
while metathread does not.
So, if possible, could you take out all those dependancies?
Just let them upgraded?

The list of conflicts are below.
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. metathreads 0.0.4 requires beautifulsoup4==4.12.2, but you have beautifulsoup4 4.12.3 which is incompatible. metathreads 0.0.4 requires certifi==2023.5.7, but you have certifi 2024.2.2 which is incompatible. metathreads 0.0.4 requires exceptiongroup==1.1.2, but you have exceptiongroup 1.2.0 which is incompatible. metathreads 0.0.4 requires idna==3.4, but you have idna 3.6 which is incompatible. metathreads 0.0.4 requires soupsieve==2.4.1, but you have soupsieve 2.5 which is incompatible.

Adding a function that return user's latest reply

When a user reply a decent amount of thread, fetching said user's replies will possibly get account suspend or restricted, So hereby i suggest a function that don't request for all reply or adding new restricting var (like a limiting range) to get_user_threads_replies so that it won't send out a huge request that likely raise suspection of automated account.
Also, thank you for your wonderful package :D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.