Last active
October 11, 2015 12:18
-
-
Save tmtk75/3857612 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
### | |
Example: retrieving all links of yahoo.com | |
$ npm up | |
$ node_modules/.bin/coffee example.coffee | |
### | |
require "./node-jquery" | |
$.ajax | |
url: 'http://www.yahoo.com' | |
success: (res)-> | |
for e in $(res).find("a") | |
e = $(e) | |
console.log "[#{e.text()}](#{e.attr("href")})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment