https://github.com/fteem/freakonomics
Freakonomics Radio CLI downloader
https://github.com/fteem/freakonomics
Last synced: 26 days ago
JSON representation
Freakonomics Radio CLI downloader
- Host: GitHub
- URL: https://github.com/fteem/freakonomics
- Owner: fteem
- License: mit
- Created: 2015-11-04T23:15:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-13T17:28:54.000Z (over 10 years ago)
- Last Synced: 2025-12-01T23:52:17.057Z (7 months ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/freakonomics
- Size: 77.1 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Freakonomics
[](https://codeclimate.com/github/fteem/freakonomics)
[](https://codeclimate.com/github/fteem/freakonomics/coverage)
[](https://travis-ci.org/fteem/freakonomics)
Freakonomics is a CLI app built with Ruby. It's purpose is to download episodes of
one of my favourite podcasts - [Freakonomics](http://freakonomics.com).
## Installation
Install it yourself as:
$ gem install freakonomics
## Usage
### Download latest episode
You can download the latest episode via:
```ruby
freak latest
```
You can also specify a download path:
```ruby
freak latest -p/--path "freakonomics_episodes/new"
```
### Download all episodes
You can download all episodes via:
```ruby
freak all
```
You can also specify a download path:
```ruby
freak all -p/--path path_to_all_episodes
```
Note: The directory will be created if it does not exist.
### Download single episode
By name:
```ruby
freak episode --name "Do More Expensive Wines Taste Better?"
```
By release date:
```ruby
freak episode --date "01 Dec 2010"
```
Also, works with path:
```ruby
freak episode --date "01 Dec 2010" --path path_to_episodes
```
```ruby
freak episode --name "Do More Expensive Wines Taste Better?" --path path_to_episodes
```
## To do
- [x] Download latest
- [x] Download latest with path
- [x] Download all
- [x] Download all with path
- [x] Download single episode by name
- [x] Download single episode by release date
- [x] Download single episode by name with path
- [x] Download single episode by release date with path
- [ ] Test coverage!
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/fteem/freakonomics.
## License
See [LICENSE](https://github.com/fteem/freakonomics/blob/master/LICENSE).