{"id":17187961,"url":"https://github.com/icculus/twitterlosses","last_synced_at":"2025-03-25T04:26:59.136Z","repository":{"id":106920533,"uuid":"381143361","full_name":"icculus/twitterlosses","owner":"icculus","description":"A script to alert you when people unfollow you on Twitter.","archived":false,"fork":false,"pushed_at":"2021-07-06T14:32:24.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-30T04:41:32.067Z","etag":null,"topics":["followers-twitter","twitter"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icculus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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},"funding":{"github":["icculus"],"patreon":"icculus"}},"created_at":"2021-06-28T19:40:52.000Z","updated_at":"2021-08-08T15:17:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"290fe9e4-2917-4ff6-9d95-81f08bafd376","html_url":"https://github.com/icculus/twitterlosses","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/icculus%2Ftwitterlosses","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icculus%2Ftwitterlosses/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icculus%2Ftwitterlosses/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icculus%2Ftwitterlosses/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icculus","download_url":"https://codeload.github.com/icculus/twitterlosses/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245398006,"owners_count":20608741,"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":["followers-twitter","twitter"],"created_at":"2024-10-15T01:07:43.096Z","updated_at":"2025-03-25T04:26:59.127Z","avatar_url":"https://github.com/icculus.png","language":"PHP","funding_links":["https://github.com/sponsors/icculus","https://patreon.com/icculus"],"categories":[],"sub_categories":[],"readme":"# TwitterLosses\n\nThis is sort of a petty thing, I get it.\n\nThis script runs in a cronjob and alerts you when people unfollow you on\nTwitter.\n\n## To set this up:\n\n(These dev.twitter.com instructions are right as of November 2012, but the UI\ncould always change. Wing it.)\n\n- Go to dev.twitter.com, login, go to \"My applications\" on the menu that pops\n  up when you mouse over your avatar on the top right of the page.\n- Click the \"Create a new application\" button.\n- Fill in whatever you want here. You can leave \"Callback URL\" blank. Agree to\n  the license and click the create button.\n- When you app is created, click \"Create my access token\" at the bottom of the\n  next page.\n- This app only needs to be read-only; it never tries to post or edit anything\n  with your account. We just need this so we can grab your follower list from\n  Twitter.\n- Now you should have four magic values on that page: Consumer Key,\n  Consumer Secret, Access Token, and Access Token Secret.\n- Make a file in this directory called config.php, with these four magic values,\n  and your screen name, like this:\n  ```php\n  \u003c?php\n  define('CONSUMER_KEY', '3k9sjcS4thSfsfsgW');\n  define('CONSUMER_SECRET', 'AKCdfsdfSF9sdf98989sdfFSsFQasdfokfAdsfqFRTAcVx');\n  define(\"OAUTH_TOKEN\", '34672782-wwgovSDFSdf9sdf0DFSFLf08afamkg2GZga';\n  define(\"OAUTH_SECRET\", 'sf0fkv9s82sffah2k3333FSFsfkskaf9aFAf9faghjQ');\n  define(\"TWITTER_USERNAME\", 'icculus');\n  ?\u003e\n  ```\n- Now run `php ./twitterlosses.php` and if all went well, it should pull in all\n  of your current users, assuming you aren't like Beyonce famous. This first\n  run or so will dump out a lot of information, and cache the users it sees.\n  Once you are set up, future runs will just report changes from what is already\n  known (that is, new people following and accounts that unfollow you).\n- You'll want to run twitterlosses.php in a cronjob, so new info shows up\n  whenever the script sees it. I use the included mailupdate.sh script in a\n  cronjob every 15 minutes, but you can do whatever you like.\n- You may need to sniff around for hardcoded things. Grep for `icculus` to\n  fix a hardcoded URL or two. Send patches.\n\n\n## Questions?\n\n[File an issue](https://github.com/icculus/twitterlosses/issues) or just ask me: icculus@icculus.org\n\n--ryan.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficculus%2Ftwitterlosses","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficculus%2Ftwitterlosses","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficculus%2Ftwitterlosses/lists"}