Skip to content

Commit ec5edb2

Browse files
committed
Revert to jQuery 1.3.2 and remove info supplied by request.
1 parent 3058ba7 commit ec5edb2

File tree

6 files changed

+4384
-24
lines changed

6 files changed

+4384
-24
lines changed

README.md

+2-16
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ First argument is an array containing either strings or objects, second is a cal
5858
}
5959
, 'http://search.twitter.com/search?q=html5'
6060
]
61-
, function(err, $, urlInfo) {
61+
, function(err, $) {
6262
if (err) {throw err;}
6363

64-
console.log('Messages from: '+urlInfo.href);
6564
$('.msg').each(function() {
6665
console.log($(this).text().trim()+'\n');
6766
});
@@ -102,22 +101,9 @@ Contains the info about what page/pages will be scraped
102101
### Second (optional)
103102
The callback that allows you do use the data retrieved from the fetch.
104103

105-
function(err, $, urlInfo) {
104+
function(err, $) {
106105
if (err) {throw err;}
107106
108-
/* Showing the data within urlInfo:
109-
{ href: 'http://search.twitter.com/search?q=javascript',
110-
protocol: 'http:',
111-
slashes: true,
112-
host: 'search.twitter.com',
113-
hostname: 'search.twitter.com',
114-
search: '?q=javascript',
115-
query: 'q=javascript',
116-
pathname: '/search',
117-
port: 80 }
118-
*/
119-
120-
console.log('Messages from: '+urlInfo.href);
121107
$('.msg').each(function() {
122108
console.log($(this).text().trim()+'\n');
123109
}

0 commit comments

Comments
 (0)