Skip to content

Commit

Permalink
add watson
Browse files Browse the repository at this point in the history
  • Loading branch information
syu-id committed Jan 9, 2014
1 parent f3efd71 commit a8b28bd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .watsonrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# watson rc
# watson - inline issue manager
# [goosecode] labs


# Directories
[dirs]
./


# Tags
[tags]
todo
fix
review


# Ignores
[ignore]
.git
*.swp
4 changes: 2 additions & 2 deletions aozoraget
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
# coding: utf-8
# usage: download book series from aozora-bunko.
# author: eric
# TODO: opt-parse
# [todo] - opt-parse
require 'nokogiri'
require 'open-uri'

# variables
author_url = 'http://www.aozora.gr.jp/index_pages/person52.html'
author_name = "紫式部.与謝野晶子訳"
book_title = "源氏物語"
# TODO default to '/tmp/aozoraget'
# [todo] - default to '/tmp/aozoraget'
save_dir = '/home/eric/tmp/genji/' # trailing '/' is a must.

page = Nokogiri::HTML open(author_url)
Expand Down

0 comments on commit a8b28bd

Please sign in to comment.