{"id":19852865,"url":"https://github.com/franck1333/twittbot-random","last_synced_at":"2026-05-15T02:03:22.558Z","repository":{"id":104683934,"uuid":"137815417","full_name":"Franck1333/TwittBot-RANDOM","owner":"Franck1333","description":"This project aims to Send pictures or any other content Randomly on Twitter","archived":false,"fork":false,"pushed_at":"2019-09-06T08:42:03.000Z","size":3085,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-11T13:29:05.465Z","etag":null,"topics":["message","picture","python","raspberry-pi","raspberry-pi-zero","raspberrypi","twitter","twitter-api","twitter-bot","twython"],"latest_commit_sha":null,"homepage":"https://twitter.com/Franck1333","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/Franck1333.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":"2018-06-18T23:01:22.000Z","updated_at":"2023-03-05T01:08:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"727ceb9b-0412-4cbd-8fb2-0e3ff8c985d2","html_url":"https://github.com/Franck1333/TwittBot-RANDOM","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"bc9c6fe32efd60360ff0aa7820ef40783ef62c7b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Franck1333%2FTwittBot-RANDOM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Franck1333%2FTwittBot-RANDOM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Franck1333%2FTwittBot-RANDOM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Franck1333%2FTwittBot-RANDOM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Franck1333","download_url":"https://codeload.github.com/Franck1333/TwittBot-RANDOM/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241241761,"owners_count":19932811,"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":["message","picture","python","raspberry-pi","raspberry-pi-zero","raspberrypi","twitter","twitter-api","twitter-bot","twython"],"created_at":"2024-11-12T14:04:42.895Z","updated_at":"2026-05-15T02:03:22.502Z","avatar_url":"https://github.com/Franck1333.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TwittBot-RANDOM\nThis project aims to Send pictures or any other content Randomly on Twitter\n\n## Some Tweets\nFirst Tweet : https://twitter.com/Franck1333/status/1008860353533538304\n\nSecond Tweet : https://twitter.com/Franck1333/status/1008869938788995072\n\nThird Tweet : https://twitter.com/Franck1333/status/1008882549861638150\n\n## Getting Started\nTo get a copy of the project , you can go on the GitHub's webpage of the project and click on the green button to download as a .ZIP file.\n\nHowever , if you're using a prompt on a unix machine use this line :\n```\ngit clone https://github.com/Franck1333/TwittBot-RANDOM.git\n```\nHowever , before doing anything  , you should check updates of your platform before Install and Run this project , it's recommended ;=)\nwith that command line :\n\n```\nsudo apt-get update \u0026\u0026 sudo apt-get upgrade\n```\n\n### Prerequisites\nTo use the project , you will need some Hardware:\n\nA Raspberry Pi (Why not a ZERO Pi :+1: )\n\nA Micro S.D card (8 Gb Minimum)\n\nA screen (Anything you need to look at your console or SSH/VNC)\n\nAnd you will also need some libraries that are already include Natively in python :\n\n```\nimport time\nimport os\nimport sys\nimport datetime\n\n#Blibliothèque Twython (Twitter/Python)\nfrom twython import Twython\n\n#Blibliothèque RANDOM pour l'utilisation de l'aléatoire\nimport random\n\n#Blibliothèque du Projet\nfrom temps_sys import temps\n```\n\n#### KEYS\n\nTo make work the project , you will need some Identification keys that you will ask to Twitter to get them;\n\nYou will need :\n```\n#IDENTIFIANTS DE CONNEXION a l'API Twitter -- DEBUT -- \nCONSUMER_KEY = '***'     #Changer ces identifiants par les vôtres\nCONSUMER_SECRET = '***'  #Changer ces identifiants par les vôtres\nACCESS_KEY = '***'       #Changer ces identifiants par les vôtres\nACCESS_SECRET = '***'    #Changer ces identifiants par les vôtres\nprint(\"Identification en cours...\")\ntwitter = Twython(CONSUMER_KEY,CONSUMER_SECRET,ACCESS_KEY,ACCESS_SECRET)\n#IDENTIFIANTS DE CONNEXION a l'API Twitter -- FIN --\n```\nYou can ask all those keys, here at this adress : https://apps.twitter.com/\n\n### Installing\n  To get and install the files , use this line: \n  ```\n  git clone https://github.com/Franck1333/TwittBot-RANDOM.git\n  ```\n### RUN\nTo run the project , you've got many possibilities as : \n\n#### First Way to run the project : \n  To run the project , you can run the small script file called \"Start_TwittBot.sh\" ; it's will launch the project in the background\n\n#### Second Way to run the project : \n  To run the project ; if you want to see the console activities , you can launch the file called \"Start_TwittBot.sh\" into the Command Line Prompt with \"./Start_TwittBot.sh\"\n  \n#### Third Way to run the project :\n  To run the project ; if you want to see the console activities , you can launch the file called \"bot.py\" into the Command Line Prompt with \"sudo python bot.py\"\n  \n#### The Fourth Way to run the project :\n  To run the project ; if you want the project run automatically every 2 minutes :\n  \n  You can use 'CronTab' like this:\n  \n  ```\n  sudo crontab -e\n  ```\n  ```\n   */2 * * * * /home/pi/TwittBot-RANDOM/MyWork/Start_TwittBot.sh \u003e/dev/null 2\u003e\u00261\n  ```\n\nOR YOU CAN USE : https://crontab-generator.org/\n\n## The Folders and Files\nIn this project , you will be able to see two main Directories:\n\n### Directories\n\n/TwittBot-RANDOM/\"Exemple\"/ : Which show you the examples that I use or made for this project\n\n/TwittBot-RANDOM/\"MyWork\"/ : Which show you the source code of the project\n\n#### Files in /TwittBot-RANDOM/\"MyWork\"/\n\nbot.py : It's the main python file of the project\ntemps_sys.py : This python file allow to get the current time\nStart_TwittBot.sh : This script allow you to launch the project\nREAD_CRONTAB.txt : This documents is a tutorial for use Crontab on your system.\n##### Files in /TwittBot-RANDOM/MyWork/images\nIn this folder you will access to some pictures to test the bot:\n\n```\nBeijing.jpg\nGlass.jpg\nHongKong.jpg\nOsaka.jpg\nTokyo.jpg\nZiba.jpg\n```\nI want to go to those places ; I will one day :heart: !!!\n\n## Authors\n\n* **Franck ROCHAT** - *Initial work* - [Franck ROCHAT](https://github.com/Franck1333)\nThank You ! :hearts:\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranck1333%2Ftwittbot-random","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffranck1333%2Ftwittbot-random","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffranck1333%2Ftwittbot-random/lists"}