A Twitter bot that finds easily overlooked tweets
- PHP 5.x
- cURL extension
- Rename
config-example.php
asconfig.php
and open it in your text editor - Change the
SCREEN_NAME
to something of your own choosing - Using that screen name, sign into https://dev.twitter.com/ (i.e., don't use your personal account)
- Click on your user icon, choose My Applications
- Click Create New App
- Click on your new application
- Look for "Access level" and click "modify app permissions"
- Choose "Read, write, and direct messages" (you may be asked to enter and verify a phone number)
- Click the "API Keys" tab, scroll down and click "Generate access token"
- Wait a moment, reload the page, then copy and paste the following values into your
config.php
:- API Key
- API Secret
- Access token
- Access token secret
- Make sure
data
folder is writable by the web user - Load up
index.php
in a web browser (the page will reload itself; no cron job required!)