{"id":27276651,"url":"https://github.com/railona/twitter-bot","last_synced_at":"2025-04-11T16:16:03.778Z","repository":{"id":54768327,"uuid":"332900151","full_name":"RailonA/Twitter-bot","owner":"RailonA","description":"A Twitter bot built with ruby that takes three Twitter pages that you like and keeps your page updated by retweeting one of their tweets randomly, once a day. ","archived":false,"fork":false,"pushed_at":"2021-01-30T14:45:38.000Z","size":10040,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2023-03-07T13:37:10.748Z","etag":null,"topics":["ruby","twitter","twitter-page"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/RailonA.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}},"created_at":"2021-01-25T22:20:09.000Z","updated_at":"2021-08-04T14:27:31.000Z","dependencies_parsed_at":"2022-08-14T02:10:57.724Z","dependency_job_id":null,"html_url":"https://github.com/RailonA/Twitter-bot","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RailonA%2FTwitter-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RailonA%2FTwitter-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RailonA%2FTwitter-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RailonA%2FTwitter-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RailonA","download_url":"https://codeload.github.com/RailonA/Twitter-bot/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248438519,"owners_count":21103410,"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":["ruby","twitter","twitter-page"],"created_at":"2025-04-11T16:15:58.977Z","updated_at":"2025-04-11T16:16:03.757Z","avatar_url":"https://github.com/RailonA.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ruby-template\n\n\nThis project is Microverse Ruby Capstone project. I have built a bot that posts a tweet at 12pm every day. I have selected three pages that interest me and my bot will retweet one of the recent 10 posts out of these three pages. It will also check its memory to confirm that it does not retweet the same tweet. \n\n![screenshot](./twitter-Screenshot.png)\n \n## Built With\n\n- RUBY\n- Ruby Twitter Gem\n- RSpec\n- Visual Code\n\n## Getting Started\n\nTo get a local copy up and running follow these simple steps.\n\n### Prerequisites\n\n- Terminal\n- Ruby [Install](https://www.theodinproject.com/courses/ruby-programming/lessons/installing-ruby-ruby-programming)\n- RSpec [Install](https://www.theodinproject.com/courses/ruby-programming/lessons/introduction-to-rspec)\n- An account on Twitter with a Developer Portal\n[WebPAge](https://developer.twitter.com/en)\n\n\n#### Setup\n- Run `bundle install` to install the required gems on your computer\n\n\n#### Clone the repository\n- Click on the \"code\" button above on this page and copy the link to the repository\n- Open a terminal (CTRL + ALT + T), type `git clone` and paste the link you copied in the previous step, then hit Enter\nEx: ‘git clone https://github.com/RailonA/Twitter-bot.git’\n- Go to the cloned repository using `cd` command\n###Getting Your API Keys\n\nAfter setting up your Twitter Developer Portal, you will need to make a new App.\n\nOn the top-left side select the arrow pointing down\nSelect the Overview \nSelect `+Add App`\n\nAfter Making an app, you should see `Settings` and `Keys and Tokens`\nSelect `Keys and Tokens`\n\nYou should now see Consumer Keys, please select `Regenerate`  for the `API key \u0026 secret` as well as the `Access token \u0026 secret`\n\nUse these credentials to fill out :\n\nconfig.consumer_key = \"YOUR_CONSUMER_KEY\"\nconfig.consumer_secret = \"YOUR_CONSUMER_SECRET\"\nconfig.access_token = \"YOUR_ACCESS_TOKEN\"\nconfig.access_token_secret = \"YOUR_ACCESS_SECRET\"\n\n### Run tests\n\nFrom the root folder (EX: `../Twitter-bot$` ), run `ruby bin/bot.rb`\n\nYou should see something similar to\n \n‘Fascinating stuff done by @SpaceXRT @nettofarah: For some reason, Rails + PostgreSQL + Plain CSS + Heroku still beats every single “modern stack” for web app develop… https://t.co/DQmHieWRfZ’\n\n## Change NEEDED for the project to push to your Twitter Page\n### Step: 1\nFor the code to push the content to your Twitter page, you must go to the ‘lib/tweet_methods.rb‘ file and uncomment line 44 by highlighting the line and pressing  (CTRL + ?)\n‘@twitter.update(\"Fascinating stuff done by @#{@option_data_name[@randome_page]}\" + selected_tweet)’\nWe can now delete line 43\n‘   puts \"Fascinating stuff done by @#{@option_data_name[set_randome_page]}\" + selected_tweet’\n\n### Step: 2\nRun the program again by typing run `ruby bin/bot.rb`\n\nYou will now see a new Tweet on your Twitter account.\n\n## Authors\n\n👤 **Railon Acosta**\n- GitHub: [@railonA](https://github.com/RailonA)\n- Linkedin: [@railonAcosta](https://www.linkedin.com/in/railon-acosta-81265180/)\n- Twitter: [@railonAcosta](https://twitter.com/RailonAcosta)\n\n## 🤝 Contributing\n\nContributions, issues, and feature requests are welcome!\n\nFeel free to check the [issues page](https://github.com/RailonA/Twitter-bot/issues).\n\n## Show your support\n\nGive a ⭐️ if you like this project!\n\n## Acknowledgments\n\nThanks to both parties involved in the development of this project.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailona%2Ftwitter-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frailona%2Ftwitter-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frailona%2Ftwitter-bot/lists"}