![]() The new post will make sure the most recent timestamp in the Toot timeline is up to date. Reading documentation from Pixelfed its said you can connect to it like you do with Mastodon, just with some caveats, like (if I. then the rss feed of the site could reflect the changed or added article, etc. But what I really need is to connect to a Pixelfed instance. You can copy and paste this address into the search box on Mastodon etc. On one of my OpenBSD server instance, I installed feed2toot. I used Mastodon.py and successfully had connected to a Mastodon instance using user/password. Start the Python 3.9 REPL Run from mastodon import Mastodon Run: Mastodon.createapp your-app-name, scopes read, write, apibaseurl' (note Im using c.im but you can use any server you normally use) Follow the steps outlined here. Install, configure and run the Bot software. If you need to disable the tool for a while (system maintenance, etc), but you don't want the bot to flood Mastodon with a bunch of belated posts when it starts up again, you can just make a post directly to the bot via the Mastodon interface and then start the scheduled task again. How to login on Pixelfed instances with Mastodon.py. You will need to schedule separate tasks for each bot/config. In order to have a bot that updates regularly, you will need to schedule the above PHP call with a Cron task or a Scheduled Task depending on your system. If the bot is new and has no posts, it will only post the most recent feed item, not the entire feed. If your feed has items added every minute (hopefully unlikely), then this tool may miss an item or two along the way. Obviously, this has the potential to not be as accurate as a bot with a cache, but I'm too lazy to build one. Use cases Use Mastobot when: Your bot replies to or interacts with certain posts on its home timeline or Your bot answers some questions people ask it or Your bot keeps track of some users it's following. The tool will check the timestamp of the latest toot and get all Feed items after that timestamp and posts them. Install via setuptools Clone and cd into this repo, python setup.py install -user. GitHub - ai6yr/rss2mastodon: RSS to Mastodon in pythonGitHub. To keep the application 'stateless' (see top), the tool works based off of timestamps. do you have any open source code if someone wanted to create their own local NWS bot. Please note the lack of '.json' in the parameter. This is your authorization to post to your Mastodon account. After creating an application, copy the access token. Ive searched for any info on integrating rss feeds into my Mastodon timeline but. In the Development panel, click on the New Applications button. Apart from being a (slight) increase in bandwidth use on the feed. Php /path/to/php-mastodon-rss-to-bot-stateless/index.php my_rss The first step is to go to Preferences in Mastodon and select the Development category. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |