Sha256: 2287b8b134fdec289866a3ffbc9b5f6a7e64fb0bc19700d38d49d0e8dce05b01
Contents?: true
Size: 348 Bytes
Versions: 2
Compression:
Stored size: 348 Bytes
Contents
#!/usr/bin/env ruby require 'taiwanese_news_parser' require 'json' url = ARGV[0] if url.nil? abort "taiwanese_news_parser: no URL provided.\nusage: taiwanese_news_parser \"[url]\"\nPlease remember to quote your url." end begin puts JSON.generate(TaiwaneseNewsParser.parse(url)) rescue => e abort "taiwanese_news_parser: #{e.message}" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
taiwanese_news_parser-0.0.3 | bin/taiwanese_news_parser |
taiwanese_news_parser-0.0.2 | bin/taiwanese_news_parser |