Looking for SERP content scraper

13385

Power Member
Joined
Aug 17, 2010
Messages
545
Reaction score
1,022
Hi guys,

I'm looking for a tool that will scrape text from websites. Either by scraping the SERPS or by manually entering URLS (since I can scrape urls myself)

So basically the tool just needs to go to an URL, grab main body text, save.

I know this sounds simple but I can't find anything that seems to be able to do this :/


Please only reply if you know of an existing tool that can do this.
 
Perl LWP is my favorite.

But you can also use curl with PHP or C.

I'm sure Python and Ruby will have simple solutions for this as well.
 
if you have zennoposter or ubot license then they could do it for you
 
Perl LWP is my favorite.

But you can also use curl with PHP or C.

I'm sure Python and Ruby will have simple solutions for this as well.

Thanks for the suggestions but I'm looking for a ready-made tool to do this. Surely there must be something out there that can do this?
 
I have zennoposter but I'm really looking for something that can do this out of the box with minimal hassle/fuss without having to code/program something
 
https://github.com/blackstonetech/pycurl/blob/master/examples/retriever-multi.py would work if you are okay with Python. It's a little bit of an overkill for something like this, but it's fast, serves the purpose, and it's already written. :D

The usage is something like this:

python retriever-multi.py <file with URLs to fetch> <# of concurrent connections>

You can add proxies, etc. to this script, too, if you are scraping on a large scale. It's a few lines of code, let me know if you want me to add it?

Also, doing something like this would be pretty simple in PHP, too. Something like this:

<?php
function get_contents($url){
$r = file_get_contents($url);
return $r;
}


function save_contents($content, $filename){
$f = fopen($filename . ".txt", "wb");
$write = fwrite($f, $content);


if($f && $write){
fclose($f);
return true;
} else {
return false;
}


}


$arr = ['http://www.facebook.com', 'http://www.google.com', 'http://www.yahoo.com'];


for($i = 0; $i < count($arr); $i++){


print "Getting content for $arr[$i]! \n";
$body = get_contents($arr[$i]);


print "Got content! Now saving it. \n";


if(save_contents($body, $i)){
print "Saved content to {$i}.txt! \n";
} else {
print "Failed to save content! \n";
}
}


?>

This isn't very robust or very fast, but it will get the job done. I tested it out with a couple of URLs. You can also use cURL with PHP, that will be faster.
 
Last edited:
https://github.com/blackstonetech/pycurl/blob/master/examples/retriever-multi.py would work if you are okay with Python. It's a little bit of an overkill for something like this, but it's fast, serves the purpose, and it's already written. :D

The usage is something like this:



You can add proxies, etc. to this script, too, if you are scraping on a large scale. It's a few lines of code, let me know if you want me to add it?

Also, doing something like this would be pretty simple in PHP, too. Something like this:



This isn't very robust or very fast, but it will get the job done. I tested it out with a couple of URLs. You can also use cURL with PHP, that will be faster.

Thanks a lot for taking the time to help me with that. I'm still looking for an 'out of the box', point and click -> harvest content sollution though.
 
Back
Top