danchoi / kindlefodder

Bring web docs to the Kindle
MIT License
366 stars 45 forks source link

kindlerb error on each recipe #14

Open darvin opened 11 years ago

darvin commented 11 years ago

# ruby -Ilib recipes/clojure.rb

output dir is src/clojure
  rm -rf src/clojure
  curl -s -L http://clojure.org/
/Users/darvin/.rvm/gems/ruby-1.9.3-p327/gems/kindlerb-0.1.1/lib/kindlerb.rb:112:in `block in run': undefined method `[]' for nil:NilClass (NoMethodError)
    from /Users/darvin/.rvm/gems/ruby-1.9.3-p327/gems/kindlerb-0.1.1/lib/kindlerb.rb:37:in `chdir'
    from /Users/darvin/.rvm/gems/ruby-1.9.3-p327/gems/kindlerb-0.1.1/lib/kindlerb.rb:37:in `run'
    from /Users/darvin/.rvm/gems/ruby-1.9.3-p327/gems/kindlerb-0.1.1/bin/kindlerb:8:in `<top (required)>'
    from /Users/darvin/.rvm/gems/ruby-1.9.3-p327/bin/kindlerb:19:in `load'
    from /Users/darvin/.rvm/gems/ruby-1.9.3-p327/bin/kindlerb:19:in `<main>'
    from /Users/darvin/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval'
    from /Users/darvin/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `<main>'
darvin commented 11 years ago

actually it's like that only for heroku, closure and pro_git.

danchoi commented 11 years ago

It's probably because these websites changed their HTML & the scraper no longer works. I'm not sure when I'll be able to correct this.

iamdeepakmishra commented 8 years ago

i am having the same problem with every recipe.. Is it due to the change in their HTML????

iamdeepakmishra commented 8 years ago

recipes/github_projects.rb:44:in block (2 levels) in extract_sections': undefined methodinner_text' for nil:NilClass (NoMethodError) from recipes/github_projects.rb:40:in map' from recipes/github_projects.rb:40:inblock in extract_sections' from recipes/github_projects.rb:37:in each' from recipes/github_projects.rb:37:inmap' from recipes/github_projects.rb:37:in extract_sections' from recipes/github_projects.rb:22:inget_source_files' from /Users/deepak/Documents/Deepak/KindleWork/kindlefodder/lib/kindlefodder.rb:41:in generate' from recipes/github_projects.rb:69:in

'