this post was submitted on 17 Jun 2023
19 points (95.2% liked)
Vancouver
1438 readers
17 users here now
Community for the city of Vancouver, BC
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Thanks, works as a charm. Just created (and deleted) my first post programmatically. I managed to do it with using Lemmy.ca instance, but not through the account hosted on Lemmy.world. Why?
That's awesome to hear seeing as though this is the code I was planning on using for my project. As for your issue, it looks like you set the URL when you create the class object here
lemmy = Lemmy("https://lemmy.dbzer0.com")
Did you put the lemmy.ca URL in there? Try changing that to the lemmy.world URL and see if it works like you expect