{"id":17894086,"url":"https://github.com/blainerothrock/python-twitter-kafka-producer","last_synced_at":"2025-04-03T04:25:45.978Z","repository":{"id":141832387,"uuid":"178577139","full_name":"blainerothrock/python-twitter-kafka-producer","owner":"blainerothrock","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-30T17:20:51.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T18:30:43.307Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blainerothrock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2019-03-30T15:35:37.000Z","updated_at":"2019-03-30T17:20:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"10c958a7-b67f-4947-890c-218b6d233e1b","html_url":"https://github.com/blainerothrock/python-twitter-kafka-producer","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/blainerothrock%2Fpython-twitter-kafka-producer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blainerothrock%2Fpython-twitter-kafka-producer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blainerothrock%2Fpython-twitter-kafka-producer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blainerothrock%2Fpython-twitter-kafka-producer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blainerothrock","download_url":"https://codeload.github.com/blainerothrock/python-twitter-kafka-producer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246935506,"owners_count":20857437,"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-10-28T14:59:59.482Z","updated_at":"2025-04-03T04:25:45.959Z","avatar_url":"https://github.com/blainerothrock.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-twitter-kafka-producer\n\nA very simple kafka producer written in python that steams tracked keywords\n\n## Run\n* install requirements from `requirements.txt`\n* start zookeeper \u0026 kafka locally (assumes broker @ `127.0.0.1:9092` or `KAFKA_BROKER` environment variable)\n* add twitter environment variables to `.bash_profile`\n  * `TWITTER_CONSUMER_KEY`\n  * `TWITTER_CONSUMER_SECRET`\n  * `TWITTER_ACCESS_TOKEN`\n  * `TWITTER_ACCESS_SECRET`\n* run `python producer.py TOPIC KEYWORD1 KEYWORD2 ... KEYWORDN`\n  * example: `python producer.py twitter-topic01 kafka python`\n* start a kafka consumer\n  * example: `kafkakat -b 127.0.0.1:9092 -t twitter-topic01`\n  \n## Details\n* Messages are posted as JSON:\n```JSON\n{\n  \"user\": \"\",\n  \"message\": \"\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblainerothrock%2Fpython-twitter-kafka-producer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblainerothrock%2Fpython-twitter-kafka-producer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblainerothrock%2Fpython-twitter-kafka-producer/lists"}