{"id":21040973,"url":"https://github.com/chfoo/litterapi","last_synced_at":"2025-05-15T16:33:30.788Z","repository":{"id":25099760,"uuid":"28520884","full_name":"chfoo/litterapi","owner":"chfoo","description":"An API built from Twitter's web interface.","archived":true,"fork":false,"pushed_at":"2014-12-26T21:02:39.000Z","size":112,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T20:14:51.963Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chfoo.png","metadata":{"files":{"readme":"README.rst","changelog":null,"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":"2014-12-26T20:51:30.000Z","updated_at":"2024-07-13T07:25:28.000Z","dependencies_parsed_at":"2022-07-27T05:02:18.817Z","dependency_job_id":null,"html_url":"https://github.com/chfoo/litterapi","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/chfoo%2Flitterapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2Flitterapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2Flitterapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoo%2Flitterapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chfoo","download_url":"https://codeload.github.com/chfoo/litterapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254377496,"owners_count":22061156,"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":[],"created_at":"2024-11-19T13:49:18.335Z","updated_at":"2025-05-15T16:33:30.530Z","avatar_url":"https://github.com/chfoo.png","language":"Python","readme":"=========\nLitterapi\n=========\n\nAn API built from Twitter's web interface.\n\nTwitter's API doesn't serve the same results from their web search especially with historical operators. This Python library exposes an API scraped from their web pages.\n\nSearch is currently supported.\n\n\nInstall\n=======\n\nRequires:\n\n* Python 3.2 or greater\n* requests\n* html5lib\n\nIf you have pip, you can run::\n\n    pip3 install git+https://github.com/chfoo/litterapi#egg=litterapi --user\n\n\nQuick Start\n===========\n\nTo start searching quickly::\n\n    python3 -m litterapi search \"cat\"\n\n\nWill return JSON formatted lines (line-breaks added for clarity)::\n\n    {\n        \"tweet_id\": \"12345\",\n        \"screen_name\": \"catlover456\",\n        \"user_id\": \"7890\",\n        \"timestamp\": 14567890,\n        \"text\": \"Have you seen this cat? So cute! pic.twitter.com/photo/abcd,\n        \"urls\": [\n            [\"http://t.co/abcdef134\", \"http://pic.twitter.com/photo/abcd\"]\n        ]\n    }\n\n\nThrough the fake API::\n\n    api = SearchAPI('cat')\n\n    while True:\n        results = api.fetch()\n\n        if not results:\n            break\n\n        for result in results:\n            print(json.dumps(result))\n\n        time.sleep(1)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchfoo%2Flitterapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchfoo%2Flitterapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchfoo%2Flitterapi/lists"}