{"id":13456551,"url":"https://github.com/d60/twikit","last_synced_at":"2025-05-15T15:06:56.965Z","repository":{"id":218248717,"uuid":"745961951","full_name":"d60/twikit","owner":"d60","description":"Twitter API Scraper | Without an API key | Twitter Internal API | Free | Twitter scraper | Twitter Bot","archived":false,"fork":false,"pushed_at":"2025-04-22T08:31:20.000Z","size":3545,"stargazers_count":2487,"open_issues_count":98,"forks_count":299,"subscribers_count":30,"default_branch":"main","last_synced_at":"2025-04-22T09:42:25.847Z","etag":null,"topics":["bot","client","python","python-web-scraper","python3","scrape","scraper","scraping","search","tweepy","twitter","twitter-api","twitter-bot","twitter-client","twitter-internal-api","twitter-scraper","wrapper","x","x-api"],"latest_commit_sha":null,"homepage":"https://twikit.readthedocs.io/en/latest/twikit.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d60.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"d60","buy_me_a_coffee":"d60py"}},"created_at":"2024-01-20T17:12:41.000Z","updated_at":"2025-04-22T08:31:25.000Z","dependencies_parsed_at":"2024-03-07T17:31:07.394Z","dependency_job_id":"5d93afed-2c63-4194-80cd-df1e05efd193","html_url":"https://github.com/d60/twikit","commit_stats":null,"previous_names":["d60/twitter-api-python","d60/twikit"],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d60%2Ftwikit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d60%2Ftwikit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d60%2Ftwikit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d60%2Ftwikit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d60","download_url":"https://codeload.github.com/d60/twikit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254364270,"owners_count":22058878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","client","python","python-web-scraper","python3","scrape","scraper","scraping","search","tweepy","twitter","twitter-api","twitter-bot","twitter-client","twitter-internal-api","twitter-scraper","wrapper","x","x-api"],"created_at":"2024-07-31T08:01:23.921Z","updated_at":"2025-05-15T15:06:56.922Z","avatar_url":"https://github.com/d60.png","language":"Python","readme":"\u003cimg src=\"https://i.imgur.com/iJe6rsZ.png\"  width=\"500\"\u003e\n\n\n\n![Number of GitHub stars](https://img.shields.io/github/stars/d60/twikit)\n![GitHub commit activity](https://img.shields.io/github/commit-activity/m/d60/twikit)\n![Version](https://img.shields.io/pypi/v/twikit?label=PyPI)\n[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Create%20your%20own%20Twitter%20bot%20for%20free%20with%20%22Twikit%22!%20%23python%20%23twitter%20%23twikit%20%23programming%20%23github%20%23bot\u0026url=https%3A%2F%2Fgithub.com%2Fd60%2Ftwikit)\n[![Discord](https://img.shields.io/badge/Discord-%235865F2.svg?style=for-the-badge\u0026logo=discord\u0026logoColor=white)](https://discord.gg/nCrByrr8cX)\n[![BuyMeACoffee](https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee)](https://www.buymeacoffee.com/d60py)\n\n[[日本語](https://github.com/d60/twikit/blob/main/README-ja.md)]\n[[中文](https://github.com/d60/twikit/blob/main/README-zh.md)]\n\n\n# Twikit \u003cimg height=\"35\"  src=\"https://i.imgur.com/9HSdIl4.png\"  valign=\"bottom\"\u003e\n\nA Simple Twitter API Scraper\n\nYou can use functions such as posting or searching for tweets without an API key using this library.\n\n- [Documentation (English)](https://twikit.readthedocs.io/en/latest/twikit.html)\n\n\n🔵 [Discord](https://discord.gg/nCrByrr8cX)\n\n\u003e [!NOTE]\n\u003e Released twikit_grok an extension for using Grok AI with Twikit.  \n\u003e For more details, visit: https://github.com/d60/twikit_grok.\n\n\n\n\n## Features\n\n### No API Key Required\n\nThis library uses scraping and does not require an API key.\n\n### Free\n\nThis library is free to use.\n\n\n## Functionality\n\nBy using Twikit, you can access functionalities such as the following:\n\n-  Create tweets\n\n-  Search tweets\n\n-  Retrieve trending topics\n\n- etc...\n\n\n\n## Installing\n\n```bash\n\npip install twikit\n\n```\n\n\n\n## Quick Example\n\n**Define a client and log in to the account.**\n\n```python\nimport asyncio\nfrom twikit import Client\n\nUSERNAME = 'example_user'\nEMAIL = 'email@example.com'\nPASSWORD = 'password0000'\n\n# Initialize client\nclient = Client('en-US')\n\nasync def main():\n    await client.login(\n        auth_info_1=USERNAME,\n        auth_info_2=EMAIL,\n        password=PASSWORD,\n        cookies_file='cookies.json'\n    )\n\nasyncio.run(main())\n```\n\n**Create a tweet with media attached.**\n\n```python\n# Upload media files and obtain media_ids\nmedia_ids = [\n    await client.upload_media('media1.jpg'),\n    await client.upload_media('media2.jpg')\n]\n\n# Create a tweet with the provided text and attached media\nawait client.create_tweet(\n    text='Example Tweet',\n    media_ids=media_ids\n)\n\n```\n\n**Search the latest tweets based on a keyword**\n```python\ntweets = await client.search_tweet('python', 'Latest')\n\nfor tweet in tweets:\n    print(\n        tweet.user.name,\n        tweet.text,\n        tweet.created_at\n    )\n```\n\n**Retrieve user tweets**\n```python\ntweets = await client.get_user_tweets('123456', 'Tweets')\n\nfor tweet in tweets:\n    print(tweet.text)\n```\n\n**Send a dm**\n```python\nawait client.send_dm('123456789', 'Hello')\n```\n\n**Get trends**\n```python\nawait client.get_trends('trending')\n```\n\nMore Examples: [examples](https://github.com/d60/twikit/tree/main/examples) \u003cbr\u003e\n\n## Contributing\n\nIf you encounter any bugs or issues, please report them on [issues](https://github.com/d60/twikit/issues).\n\n\nIf you find this library useful, consider starring this repository⭐️\n","funding_links":["https://github.com/sponsors/d60","https://buymeacoffee.com/d60py","https://www.buymeacoffee.com/d60py"],"categories":["Python","🎯 Marketing / Growth"],"sub_categories":["KOL \u0026 Influencer Discovery"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd60%2Ftwikit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd60%2Ftwikit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd60%2Ftwikit/lists"}