2023-04-23 17:28:56 +03:00
2023-04-22 16:50:09 +03:00
2023-04-22 20:42:14 +03:00
2023-04-22 16:50:09 +03:00
2023-04-22 16:50:09 +03:00
2023-04-22 16:50:09 +03:00

Twitter GraphQL and Search API implementation with SNScrape data models.

Usage

import asyncio
from twapi.client import UserClient
from twapi.pool import AccountsPool
from twapi.search import Search

async def main():
    acc1 = UserClient("user1", "pass1", "user1@example.com", "email_pass1")
    acc2 = UserClient("user2", "pass2", "user2@example.com", "email_pass2")

    pool = AccountsPool()
    pool.add_account(acc1)
    pool.add_account(acc2)

    search = Search(pool)
    async for rep in search.query("elon musk"):
        print(rep.status_code, rep.json())

if __name__ == "__main__":
    asyncio.run(main())
Описание
2024! X / Twitter API scrapper with authorization support. Allows you to scrape search results, User's profiles (followers/following), Tweets (favoriters/retweeters) and more.
Readme MIT 3,7 MiB
Languages
Python 97.7%
Makefile 2.3%