Last active
May 22, 2023 22:43
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
initial