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 86f826b3e4 Merge branch 'master' of https://git.cluster.fun/AverageMarcus/feed-fetcher 6 months ago
.dockerignore Initial commit 6 months ago
.gitignore Added webpage 6 months ago
Dockerfile Added webpage 6 months ago
LICENSE Initial commit 6 months ago
Makefile Added release task 6 months ago
README.md Merge branch 'master' of https://git.cluster.fun/AverageMarcus/feed-fetcher 6 months ago
go.mod Added webpage 6 months ago
go.sum Initial release 6 months ago
index.html Switch to develop version of milligram 6 months ago
logo.png Added logo to readme 6 months ago
main.go Added webpage 6 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