Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

anantshri/gotosocial_bulk_follow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GOTOSOCIAL BULK FOLLOW Option

DEPRECATION WARNING

tootcli verison https://github.com/ihabunek/toot/releases/tag/0.28.1 has corrected the issue at toot's end and the straight forward way is to use toot cli to bulk follow.

toot auth
toot whoami
toot follow '<fediverse_id>'

OLD README CONTENT

This script provides a quick bulk follow option for the gotosocial server. This is a temporary fix till superseriousbusiness/gotosocial#1034 issue is fixed by team.

Provide your auth token and instance name in either the code or as commandline arguments

Why was this created

toot cli is one the good options however the api of gotosocial works slightly different then what tootcli looks for and hence toot follow command doesn't works. hence the script

NOTE ABOUT AUTH TOKEN

  1. Simplest way to get auth token is to use tootcli and try to authenticate. Check the inspect console for the exact token value and use it in the tootcli.

  2. Alterantively folowing two api calls can be made to get a token code for yourself

a. We need to register our app

curl -X 'POST' \
  'https://example.org/api/v1/apps' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d 'client_name=bulk_follow&redirect_uris=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scopes=follow'

b. We need to get the token which can be obtained by going to

here client_ID is in the response of first request

https://example.org/oauth/authorize/?response_type=code&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=read+write+follow&client_id=<client_ID>

Note: I have had mixed responses with the second method

About

Bulk Follow Script for GoToSocial

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages