|Konstantine 4e8fbf0bfd||9 months ago|
|examples||9 months ago|
|spec||9 months ago|
|src||9 months ago|
|.editorconfig||9 months ago|
|.gitignore||9 months ago|
|.travis.yml||9 months ago|
|LICENSE||9 months ago|
|README.md||9 months ago|
|shard.yml||9 months ago|
Currently WIP, but this project works.
I wrapper for the Wikipedia and Wikimedia API to get commonly used things.
It’s constantly changing, but my main focus is working on new features and making QOL changes to make it nicer to work with.
Install as a shard by including in your
dependencies: crwikilib: github: MaterialFuture/CrWikiLib
After adding remember to run
shards to install and be able to use in your project
examples/ directory for examples of use.
To get the page in a data format use the following:
puts Wiki::Page.new("https", "Crystal_(programming_language)", "json")
To get the page as a PDF for download use the following:
puts Wiki::Page.pdf("https", "Crystal_(programming_language)")
To get the Post of the Day use the following code: (date in ISO format)
Wiki::POTD.new("HTTPS", potd_date, "json")
I made it so you can specify protocol, that way if you’re not required HTTP or HTTPS, you dsecide.
TODO: Write development instructions here
git checkout -b my-new-feature)
git commit -am 'Add some feature')
git push origin my-new-feature)