Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix the feeling lucky example

  • Loading branch information...
commit 18dcc9c31098e9c1b74a3387d94163c9f5a55bc5 1 parent 7b5f839
@hdachev authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 README.md
  2. +1 −1  example1.js
View
4 README.md
@@ -17,8 +17,8 @@ where `$` is the jQuery object for the parsed page:
var jscrape = require ( './index' );
jscrape ( 'http://www.google.com', function ( error, $, response, body ) {
if ( !error && $ ) {
- // print the innerHTML of the lucky button.
- console.log( $( 'button:contains("Lucky")' ).html () )
+ // Print the innerHTML of the I'm Feeling Lucky button.
+ console.log( $( 'button[onclick^=if]' ).html () )
}
})
```
View
2  example1.js
@@ -2,6 +2,6 @@ var jscrape = require ( './index' );
jscrape ( 'http://www.google.com', function ( error, $, response, body ) {
if ( !error && $ ) {
// Print the innerHTML of the I'm Feeling Lucky button.
- console.log( $( 'button:contains("Lucky")' ).html () )
+ console.log( $( 'button[onclick^=if]' ).html () )
}
})

0 comments on commit 18dcc9c

Please sign in to comment.
Something went wrong with that request. Please try again.