{"id":20100014,"url":"https://github.com/dipinknair/lfc_twitter_bot","last_synced_at":"2025-08-20T06:08:02.022Z","repository":{"id":107000784,"uuid":"327756605","full_name":"dipinknair/LFC_twitter_bot","owner":"dipinknair","description":"This is a Twitter bot made to retweet #LFC tagged tweets. Written in python and running on Hiroku cloud platform","archived":false,"fork":false,"pushed_at":"2023-05-25T01:45:25.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T16:49:14.937Z","etag":null,"topics":["bot","hiroku","twitter-bot"],"latest_commit_sha":null,"homepage":"","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/dipinknair.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-08T00:24:08.000Z","updated_at":"2021-12-16T04:35:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"d3522348-0e8e-4fb2-804a-f1e5891e1b8e","html_url":"https://github.com/dipinknair/LFC_twitter_bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dipinknair/LFC_twitter_bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipinknair%2FLFC_twitter_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipinknair%2FLFC_twitter_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipinknair%2FLFC_twitter_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipinknair%2FLFC_twitter_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dipinknair","download_url":"https://codeload.github.com/dipinknair/LFC_twitter_bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dipinknair%2FLFC_twitter_bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271273961,"owners_count":24730897,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","hiroku","twitter-bot"],"created_at":"2024-11-13T17:13:56.751Z","updated_at":"2025-08-20T06:08:02.010Z","avatar_url":"https://github.com/dipinknair.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter Bot: Auto Retweet with #LFC\n\nThis is a Twitter bot written in Python using the Tweepy library that automatically retweets any tweet containing the hashtag #LFC (Liverpool Football Club). It uses the Twitter API to authenticate and interact with the Twitter platform.\n\n## Prerequisites\n\nBefore running the bot, make sure you have the following:\n\n- Python 3.x installed on your machine\n- Tweepy library installed (`pip install tweepy`)\n- Twitter API credentials (consumer key, consumer secret, access token, and access token secret) obtained from the Twitter Developer Portal.\n\n## Installation\n\n1. Clone this repository to your local machine:\n\n   ```bash\n   git clone [repository_url]\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd [project_directory]\n   ```\n\n3. Install the required dependencies using pip:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Configuration\n\nTo configure the Twitter API credentials, you have two options:\n\n### Option 1: Environment Variables\n\n1. Create a `.env` file in the project directory.\n2. Open the `.env` file and add the following lines:\n\n   ```plaintext\n   consumer_key=[your_consumer_key]\n   consumer_secret=[your_consumer_secret]\n   access_token=[your_access_token]\n   access_token_secret=[your_access_token_secret]\n   ```\n\n3. Replace `[your_consumer_key]`, `[your_consumer_secret]`, `[your_access_token]`, and `[your_access_token_secret]` with your actual Twitter API credentials.\n\n### Option 2: Direct Configuration\n\nAlternatively, you can directly modify the `create_api()` function in the code and replace the corresponding variables with your Twitter API credentials:\n\n```python\nconsumer_key = 'your_consumer_key'\nconsumer_secret = 'your_consumer_secret'\naccess_token = 'your_access_token'\naccess_token_secret = 'your_access_token_secret'\n```\n\n## Usage\n\nTo run the bot, execute the following command:\n\n```bash\npython bot.py\n```\n\nThe bot will start streaming tweets with the given keywords and automatically retweet any tweet that contains the hashtag #LFC. It will also mark those tweets as Liked.\n\nTo customize the keywords, modify the `main()` function in the code and provide a list of desired keywords:\n\n```python\nif __name__ == \"__main__\":\n    main([\"#LFC\", \"#Liverpool\", \"#YNWA\"])\n```\n\n## Deploying to Heroku\n\nTo deploy the Twitter bot to Heroku, follow these steps:\n\n1. Create a new Heroku app either through the Heroku website or using the Heroku CLI.\n2. Set the required environment variables (`consumer_key`, `consumer_secret`, `access_token`, and `access_token_secret`) in your Heroku app's settings.\n3. Push the code to your Heroku app's repository:\n\n   ```bash\n   git push heroku main\n   ```\n\n4. Scale up the worker dyno:\n\n   ```bash\n   heroku ps:scale worker=1\n   ```\n\nYour bot will now be deployed on Heroku and start retweeting tweets with the specified keywords.\n\n**Note:** Make sure your Heroku account is verified to use the worker dyno.\n\n## License\n\n[Include license information for your project, if applicable.]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipinknair%2Flfc_twitter_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdipinknair%2Flfc_twitter_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdipinknair%2Flfc_twitter_bot/lists"}