Created
April 7, 2017 05:15
-
-
Save tsaiid/276050e6f3e0393433df43df295d22f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
result = Wombat.crawl do | |
base_url "https://www.rsroc.org.tw/" | |
path "News/" | |
posts 'xpath=//*[@id="page_right"]/table[2]/tr', :iterator do | |
title 'xpath=td[1]' | |
url 'xpath=td/a/@href' | |
date 'xpath=td[2]' | |
content 'xpath=td/a', :follow do |c| | |
c.html 'xpath=//*[@id="page_right"]/table[2]/tr[3]/td/div', :html | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment