Questions tagged [mastodon-py]

7 questions
2
votes
1 answer

How to upload custom emoji in bulk

I am testing a #Mastodon instance and want to upload a set of emojis. Is there a way to do that? Or do I have to do it one by one? I understand I can copy the ones that appear on my federated feed, but I have a set of 110 custom emojis that I need…
xchido
  • 23
  • 4
2
votes
1 answer

I get invalid_grant error for mastodon/mastodon.py. How do I do Oauth2 instead?

This code is taken almost verbatim from mastodon.py's README.md it always returns Traceback (most recent call last): File "C:\Users\matth\GitHub\feed_thing\again.py", line 32, in mastodon.log_in( File…
MatthewMartin
  • 32,326
  • 33
  • 105
  • 164
1
vote
0 answers

How to login on Pixelfed instances with Mastodon.py

I used Mastodon.py and successfully had connected to a Mastodon instance using user/password. But what I really need is to connect to a Pixelfed instance. Reading documentation from Pixelfed it's said you can connect to it like you do with Mastodon,…
HufflepuffBR
  • 443
  • 3
  • 15
0
votes
1 answer

Asynchronous Streaming of Notifications with Mastodon.py

I am attempting to asynchronously stream notifications from Mastodon using Mastodon.py. To run the asynchronous code, I'm attempting to use Trio I've tried the following: ... from mastodon import Mastodon, StreamListener ... def main(): ... …
0
votes
1 answer

Mastodon API - /api/v2/search - Not getting expected results

My objective is to perform a search of Mastodon statuses and return the content (i.e. the text) of any status that matches. The docs suggest I can do this. Can I actually do this? My python code is import requests url =…
loz
  • 43
  • 5
0
votes
1 answer

I am using mastodon python api and I am trying to access username from output dictionary.,but it is not accessible

I used following mastodon python api to get all information of user and I want to access username from it.I explain my input and output below. I am using mastodon.account['username'] to access username but it gives me error. from mastodon import…
-1
votes
1 answer

Mastodon.py what does register your app mean?

In the Mastodon.py documentation, the first thing it says is to register your app. What does this mean? I tried running the following block of code without the first one and it worked fine. So what does registering do? Why is it necessary?
usernumber
  • 1,958
  • 1
  • 21
  • 58