@sayyid_qishta Was it this one?
-
chaste pupperreplied to Oliphantom Menace last edited by
@oliphant ahh thank you !! how do i run this?
-
@oliphant sorry im not a computer toucher haha, do i paste this in the cli of the server?? or like, make a file and put it in??
-
Oliphantom Menacereplied to chaste pupper last edited by
@sayyid_qishta So you will need python, for starters.
On Mac that might mean doing
brew install python3
.Then you copy this file, modify it (with the username/password and instance that matches your server) and save it as
allowlist_gen.py
Then, if you've installed python, you just
cd
to the location of the script you just saved, and run this:python3 ./allowlist_gen.py
I believe that will do it. It should create an allowlist.txt in the same folder.
-
Oliphantom Menacereplied to Oliphantom Menace last edited by [email protected]
@sayyid_qishta If you're running this off the server, you can probably (on linux) just do something like
apt-get install python3
to install it instead -
chaste pupperreplied to Oliphantom Menace last edited by
@oliphant awesome thanks !!
-
@oliphant sorry, just to clarify, will the allowlist.txt that this generates have all the connections on my instance, or just the ones associated with my account?
-
@oliphant i made the file below in /home/mastodon/live and tried to run it and it gave me a module not found error for mastodon in the first line??
-
Oliphantom Menacereplied to chaste pupper last edited by
@sayyid_qishta Just the ones associated with your account. I can also try generating one for your instance if you prefer… I’m working on code to do this.
Note there’s a difference between instances you’re actively communicating with with followers and those you currently federate with.
As for the error…. This is apparently using a Python Mastodon library which will probably have to be installed with pip.
Try: pip3 install Mastodon.py
You could also run this for multiple users and combine the results.
-
chaste pupperreplied to Oliphantom Menace last edited by
@oliphant ah okay thanks for the info !! how would i do it for all the users? we only have 4 so it would probably be fine to do it manually, i just dunno how to find their passwords nor do i especially want to. is there a way to do it without that??
-
Oliphantom Menacereplied to chaste pupper last edited by
@sayyid_qishta Yeah, that’s the rub right there. They can create an app themselves in the Development area of the preferences and give you read access that way, though, via an api key. Otherwise I’d try to avoid using passwords.
-
Oliphantom Menacereplied to Oliphantom Menace last edited by
@sayyid_qishta All of this is pretty manual for now, but I’m hoping to make it easier.
-
chaste pupperreplied to Oliphantom Menace last edited by
@oliphant wait so how do i move forward then?
edit it looks like i can manually see their follows/followers in the admin interface, i guess worst case scenario after generating the allowlist.txt i can just check it against those to make sure all their connections will be captured??
-
Oliphantom Menacereplied to chaste pupper last edited by
@sayyid_qishta To grant people API access to your data, anyone can do this:
You click 'Development' and then 'New App' and can give it a name and check the 'read' permission and grant someone else read permissions to your data.
How that plugs into this particular script, though, I'm not sure offhand...
The docs make it appear that for cases like that, you'd probably do something different than
Mastodon.log_in
:mastodon = Mastodon(access_token = 'some-access-token')
Users can grab the access token after creating an 'App' in the Development area and send it to you.
Once your task is done, they can delete the app they just created, revoking your access.
-
Oliphantom Menacereplied to Oliphantom Menace last edited by
@sayyid_qishta Sorry, I've clearly never done this particular task before myself, so just kind of puzzling through it.
-
chaste pupperreplied to Oliphantom Menace last edited by
@oliphant no problem at all, i really appreciate your willingness to help!
-
@oliphant digging through the api interface, it seems like i can check one that gives me read permissions for all the data on the server?? so would i do that and then just put the redirect uri in there like "mastodon = Mastodon (redirect_uri = "[uri]") ??
-
Oliphantom Menacereplied to chaste pupper last edited by [email protected]
@sayyid_qishta Oh yeah, it should be possible to use an admin:read token like that to read nearly anything. I should have mentioned that to begin with, I’m not fully at my computer.