Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #USER and PASS are probably not necessary, KEY (pleroma cookie) certainly is, INSTANCE is your instance name :)
- #Rename your exported CSV list -> friends.csv
- USER=''
- PASS=''
- KEY=''
- INSTANCE=''
- for i in $(cat friends.csv); do
- echo -e "\nImporting user $i"
- curl --user $USER:$PASS --cookie "_pleroma_key=$KEY" "https://$INSTANCE/api/externalprofile/show.json?profileurl=$i"
- curl -X POST --user $USER:$PASS --cookie "_pleroma_key=$KEY" "https://$INSTANCE/api/friendships/create.json?screen_name=$i"
- sleep 1;
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement