feedfoo

command module
v2.0.0-...-75e017d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: ISC Imports: 11 Imported by: 0

README

feedfoo - do things based on new RSS feed items

Here's the current use case:

You have an RSS feed and want to send a status update about it to the fediverse.

There's an easy way and there's this tool.

Requirements

  • some kind of go compiler, 1.17.2 works
  • madonctl
  • an RSS feed as understood by gofeed

How to install

First, get madonctl to run. See the README

go get -u github.com/McKael/madonctl
$GOPATH/bin/madonctl config dump -i mastodon.social -L username@domain -P password

$GOPATH/bin/madonctl toot "Yay, test"

Then install feedfoo:

go get -u github.com/winks/feedfoo
$GOPATH/bin/feedfoo

How to build

Get feedfoo with deps:

git clone https://github.com/winks/feedfoo
cd feedfoo
go get -u github.com/mmcdole/gofeed
go build
./feedfoo -help

How to use

Try it out safely:

./feedfoo --feed https://f5n.org/blog/atom.xml --cache ./dump.json -- echo "%%TEXT%%"

Now try it out for real:

./feedfoo --feed https://f5n.org/blog/atom.xml --cache ./dump.json -- madonctl toot "%%TEXT%%"

This shouldn't do anything if you already ran it once to fill the cache file. Maybe manually delete the lastest post from the json or update the feed. I guess "cache" is the wrong term. More like "ignored" or "done".

TODO

  • templated string instead of hardcoded "New blog post: TITLE LINK"

License

ISC

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL