Skip to content

Instantly share code, notes, and snippets.

@hosokawa0825
Created September 16, 2012 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hosokawa0825/3731259 to your computer and use it in GitHub Desktop.
Save hosokawa0825/3731259 to your computer and use it in GitHub Desktop.
URスクレイピングコード
casper = require('casper').create
verbose: true
logLevel: "debug"
clientScripts: ["../lib/jquery-1.7.1.min.js"]
pageSettings: [loadImages:false]
onError: ->
@echo arguments
#for i in [1..6]
i = 1
casper.start "http://www.ur-net.go.jp/akiya/tokyo/list_a0#{i}.html", ->
@echo "start."
casper.then ->
@echo @evaluate ->
$("tr.divisionlink td.ObTbCT_Bukken a")
casper.run ->
@echo "end."
@exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment