Permalink
Browse files

fix the feeling lucky example

  • Loading branch information...
1 parent 7b5f839 commit 18dcc9c31098e9c1b74a3387d94163c9f5a55bc5 @hdachev committed Apr 24, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 README.md
  2. +1 −1 example1.js
View
@@ -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,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.