Easy way to download files via Crystal.
-
Add the dependency to your
shard.yml
:dependencies: downloader: github: crystal-libs/downloader
-
Run
shards install
require "downloader"
Download a file:
url = "https://avatars.githubusercontent.com/u/88042940?v=4"
filename = "avatar.png"
Downloader.download(url, filename)
- Fork it (https://github.com/crystal-libs/downloader)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- gxfr - creator and maintainer