{"id":22412939,"url":"https://github.com/marcosvbras/twitton","last_synced_at":"2025-03-27T03:24:06.399Z","repository":{"id":62585770,"uuid":"125573913","full_name":"marcosvbras/twitton","owner":"marcosvbras","description":"A simple Python library to make Twitter Search API easily to use","archived":false,"fork":false,"pushed_at":"2018-03-17T01:06:56.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T11:03:41.931Z","etag":null,"topics":["crawler","crawling","python","spider","twitter","twitter-api"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcosvbras.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-16T21:57:00.000Z","updated_at":"2018-03-17T01:13:19.000Z","dependencies_parsed_at":"2022-11-03T22:08:36.783Z","dependency_job_id":null,"html_url":"https://github.com/marcosvbras/twitton","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosvbras%2Ftwitton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosvbras%2Ftwitton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosvbras%2Ftwitton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosvbras%2Ftwitton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcosvbras","download_url":"https://codeload.github.com/marcosvbras/twitton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245774497,"owners_count":20669968,"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":["crawler","crawling","python","spider","twitter","twitter-api"],"created_at":"2024-12-05T14:11:24.064Z","updated_at":"2025-03-27T03:24:06.379Z","avatar_url":"https://github.com/marcosvbras.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"*************\nTwitton\n*************\n\n.. image:: https://img.shields.io/pypi/v/twitton.svg?style=flat-square\n    :target: https://pypi.python.org/pypi/twitton/\n    :alt: PyPi version\n\n.. image:: https://readthedocs.org/projects/twitton/badge/?version=latest\n     :target: https://twitton.readthedocs.org/en/latest/\n     :alt: Documentation\n\n\n.. image:: https://img.shields.io/github/last-commit/marcosvbras/twitton.svg\n     :alt: GitHub last commit\n\n\n.. image:: https://img.shields.io/github/issues-raw/marcosvbras/twitton.svg\n     :alt: GitHub issues\n\n\n.. image:: https://img.shields.io/github/license/marcosvbras/twitton.svg\n     :alt: license\n\n\n.. image:: https://img.shields.io/github/forks/marcosvbras/twitton.svg?style=social\u0026logo=github\u0026label=Fork\n     :alt: GitHub fork\n\n\n.. image:: https://img.shields.io/github/stars/marcosvbras/twitton.svg?style=social\u0026logo=github\u0026label=Stars\n     :alt: GitHub stars\n\n**Twitton** is a Python library that provides easy Twitter Search API use.\n\nWith this library you can:\n\n* Create powerful searches\n* Get all available tweet information\n* Use your own Twitter search URL's\n\nInstallation\n############\nRun the command:\n\n.. code-block:: python\n\n  pip install twitton\n\nBasic use\n############\nImport the **TweetSearch** class and create an object. Pass **consumer_key**, **consumer_key_secret**, **access_token** and **access_token_secret** arguments to constructor.\n\n.. code-block:: python\n\n  from twitton import TweetSearch\n\n  tweet_search = TweetSearch(\n      consumer_key,\n      consumer_secret,\n      access_token,\n      access_token_secret\n    )\n\n**NOTE**: These arguments are required. Twitter API calls always requires authentication.\n\nThen, specify some search arguments\n\n.. code-block:: python\n\n  tweet_search.set_keyword_list(['Star Wars', 'movie'])\n  tweet_search.set_result_type(\"recent\")\n  tweet_search.set_language(\"en\")\n  tweet_search.set_max_tweet_response(100)\n  result = tweet_search.search_tweets()\n\nThis settings will look up for tweets that contains \"Star Wars\" and \"movie\", published recently, written in english and will return 100 results.\n\nYou can iterate the object to get all available tweet dict:\n\n.. code-block:: python\n\n  for tweet in result:\n    print(tweet)\n\nDo you need more results? Search for the next tweets in sequence\n\n.. code-block:: python\n\n  result = tweet_search.search_older_tweets()\n\n... or search for the new ones published after your last search\n\n.. code-block:: python\n\n  result = tweet_search.search_newer_tweets()\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcosvbras%2Ftwitton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcosvbras%2Ftwitton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcosvbras%2Ftwitton/lists"}