Returns the RSS feed associated with the given URL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Marcus Noble 8cf51e1004
Added support for atom feeds
10 months ago
.dockerignore Initial commit 2 years ago
.gitignore Added webpage 2 years ago
Dockerfile Added webpage 2 years ago
LICENSE Initial commit 2 years ago
Makefile Added release task 2 years ago
README.md Merge branch 'master' of https://git.cluster.fun/AverageMarcus/feed-fetcher 2 years ago
go.mod Added webpage 2 years ago
go.sum Initial release 2 years ago
index.html Switch to develop version of milligram 2 years ago
logo.png Added logo to readme 2 years ago
main.go Added support for atom feeds 10 months ago

README.md

feed-fetcher

Returns the RSS feed associated with the given URL

Available at https://feed-fetcher.cluster.fun/

Usage

GET https://feed-fetcher.cluster.fun/?url=${URL_TO_CHECK}

Example:

curl -v http://localhost:8000/\?url\=https://marcusnoble.co.uk/
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8000 (#0)
> GET /?url=https://marcusnoble.co.uk/ HTTP/1.1
> Host: localhost:8000
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 307 Temporary Redirect
< Date: Wed, 17 Mar 2021 09:44:32 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 18
< Location: https://marcusnoble.co.uk/feed.xml
<
* Connection #0 to host localhost left intact
Temporary Redirect* Closing connection 0

Possible status code responses

  • 300 - Multiple possible feeds found on page (the first is returned on the Location header)
  • 301 - URL provided was already a valid feed URL
  • 307 - Feed URL found on provided page
  • 400 - No URL provided
  • 404 - No feed URL found on provided webpage
  • 500 - Server error while trying to fetch feed

Building from source

With Docker:

make docker-build

Standalone:

make build

Contributing

If you find a bug or have an idea for a new feature please raise an issue to discuss it.

Pull requests are welcomed but please try and follow similar code style as the rest of the project and ensure all tests and code checkers are passing.

Thank you 💛

License

See LICENSE