PRAW is the Python wrapper for Reddit’s API, and searching github for “lemmy api python” revealed some results, so you’d use one API to download a post, and the other to upload it.
There’s existing bots that do this though, and they all seem to just fill feeds with indiscriminate, un-replied to, spam
This post is very old, but it’s what came up when I googled it, so for anyone else, here’s some basic scripts for logging in and then using the authentication to get something that may help you get started in exploring the API.
It’s true for subscribers - you can compare your view, with the result on something like browse.feddit.de or lemmyverse.net, which give the total count.
Dunno about upvotes though, that must be universal, surely?
It’s blockable fortunately - maybe not via whatever app your using, but if you log into your instance website with a browser, you can choose to block the bot (at) lemmit (dot) online
OP was asking about blocking instances, not communities - e.g. everything that’s hosted by lemmy.world, not just nostupidquestions@lemmy.world
Ah, I wondered if that’s what it was - I found a Star Wars community through a web search and it said there were 2.5k subscribers, but it only shows 1 subscriber (me) when I view from an app.
Clicking that link on mobile opens up my email app! I think it needs a ! before it to work.
Alternatively: embedded link to Trending Communities