Signed-off-by: Etzelia <email@example.com>
|1 year ago|
|cmd/falseknees||1 year ago|
|.gitignore||1 year ago|
|LICENSE||1 year ago|
|Makefile||1 year ago|
|README.md||1 year ago|
|client.go||1 year ago|
|falseknees.go||1 year ago|
|falseknees_test.go||1 year ago|
|go.mod||1 year ago|
This is definitely not real API for FalseKnees.
By that I mean to say FK does not have an API, so this is a glorified HTML parser.
Please be considerate of the fact that this is not a real API and so it is pulling entire HTML pages to parse.
/index.html page contains a redirect to get the latest
comic number. This library leverages that page to get the current comic, however in an effort
to reduce HTTP calls against full HTML pages, the library has a built-in interval of 30 minutes.
This means that if you get the current comic at 12:00 and FK adds a new comic at 12:05, you won't get the new current comic until 12:30.
Currently the following funcs retrieve the current comic number: