Skip to content

Instantly share code, notes, and snippets.

@dewomser
Last active May 22, 2023 22:43
Show Gist options
  • Save dewomser/403aced17aa0653b416dbd3de6e8b09e to your computer and use it in GitHub Desktop.
Save dewomser/403aced17aa0653b416dbd3de6e8b09e to your computer and use it in GitHub Desktop.
Say byebye to all my Twitterfollowers / Twurl wurde im Mai 2023 von twitter abgeschaltet. Funktioniert nicht mehr
# TWURLIST KAPUTT!
# Funktioniert nict mehr !
#!/bin/bash
twurl /1.1/followers/ids.json?screen_name=your_twittername > follower.json
# STOP!
# Open in editor , cut head and buttom , erase all kommas. Save the list as follower.txt
# --------------------------------------------------------------------------------------------
#Now follows heavy hackaound due twurl is Grrrrrr !
touch test.sh
chmod +x test.sh
while read line
do
x="twurl -u twittername -A 'Content-type: application/json' -X POST /1.1/direct_messages/events/new.json -d '{\"event\": {\"type\": \"message_create\", \"message_create\": {\"target\": {\"recipient_id\": \"$line\"}, \"message_data\": {\"text\": \"Liebe Follower ! Ich werde Twitter wegen den neuen Regeln verlassen. Ihr könnt mir auf Mastodon folgen @dewomser@social.tchncs.de CU! \"}}}}'"
echo "$x" > test.sh
bash -e test.sh
#echo $line
done < follower.txt
@dewomser
Copy link
Author

dewomser commented Feb 4, 2023

initial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment