18
submitted 1 year ago* (last edited 1 year ago) by eugene@lemmy.ca to c/vancouver@lemmy.ca

A few years ago I created a Telegram channel which pulls around 10 top voted news every day from r/Vancouver and post it there: https://t.me/vancitynews It's a handy way to get local news, try it out

Now I'm thinking: Is it a good idea to automatically post those news here to spark a discussions and make this community more alive? Is it even allowed to automatically post anything? What do you think?

I'm pretty sure that the new Reddit policy will not affect my channel which calls reddit.com just a handful times per day

you are viewing a single comment's thread
view the rest of the comments
[-] Iamgroot@lemmy.ca 4 points 1 year ago* (last edited 1 year ago)

From my experience on Mastodon, not a lot of people liked bots, not sure if that’s the same vibe here, give it another week, I’m sure the CEO will fuck up more. I’m not against cross posting though to get started.

[-] IntlLawGnome@lemmy.ca 2 points 1 year ago

I don't know. There seems to be some openness on Mastodon to bots that are properly labelled as such, in my experience. I'd say open a bot account here and use it to give the crossposting a shot. Anyone who doesn't like it can easily block the bot account and move on with their day.

[-] eugene@lemmy.ca 1 points 1 year ago

I did s quick research, there are plenty of lemmy bots libraries, however I'm having a hard time finding how to get credentials for programmatic access. Any suggestions or links?

[-] Shell@lemmy.world 2 points 1 year ago
[-] eugene@lemmy.ca 1 points 1 year ago

For example, in the first link, where to get "auth" string to make a post under a particular account? When I registered an account I got name and password, my understanding that there should be also some way to get some security token for the programmatic access. This is what I'm struggling to find

[-] Shell@lemmy.world 1 points 1 year ago

Check out the way this project is doing it. Looks like it's just a post to an endpoint that gets a jwt

https://github.com/db0/pythorhead/blob/main/pythorhead/auth.py

[-] eugene@lemmy.ca 1 points 1 year ago

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?

[-] Shell@lemmy.world 1 points 1 year ago

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

load more comments (5 replies)
this post was submitted on 17 Jun 2023
18 points (100.0% liked)

Vancouver

1430 readers
5 users here now

Community for the city of Vancouver, BC

founded 3 years ago
MODERATORS