felipecsl / wombat

Lightweight Ruby web crawler/scraper with an elegant DSL which extracts structured data from pages.
https://felipecsl.github.io/wombat/
MIT License
1.31k stars 129 forks source link

Cannot run the example code. #55

Closed lyenliang closed 7 years ago

lyenliang commented 8 years ago

Hi, I got wombat.rb:14:in block (3 levels) in <main>': undefined method gsub' for nil:NilClass (NoMethodError) error when running the example code at the introduction page of wombat.

I guess the reason for this error is that github has changed its home page's code. This makes the variable e become nil.

Anyone knows how to fix this problem? I'm not familiar with xpath. I just started learning xpath.

felipecsl commented 8 years ago

yeah that's definitely it. I wrote that example a long time ago and the github page is no longer the same. I'll update the examples to reflect the current page.

Brotakuu commented 8 years ago

Could you update the example? It would be helpful. Thanks!

felipecsl commented 8 years ago

sorry i've been really out of time recently. please feel free to send a PR

felipecsl commented 7 years ago

Fixed by #59