I now use copy+paste mostly but its a tedious job, is there any easier way to do it? Thanks!
I now use copy+paste mostly but its a tedious job, is there any easier way to do it? Thanks!
is there no bot that does it? like search for a keyword in google, use first 100 results and extract the titles?
Download SEO4Firefox or SEOQuake Plugin in Firefox and then use it to scrape Google search results with Title & URL. Cheers
meinewelt (01-10-2013)
PHP fucntion preg_match with right regexp can do it in seconds. Can wright it for you tomorrow.
Ok, thats what you need. save it with <? .. ?> on hosting with PHP support and run with usage tag key. For example
http://yoursite.com/get_titles.php?key=lolcats
PHP Code:
$keyword_p=urlencode($_GET['key']);
$input=file_get_contents("http://www.google.com/search?q=".$keyword_p."&hl=en&tbs=qdr:m&lr=&sa=X&tbo=1&num=100");
$regexp = "<li class=\"g\"><h3(.*)<\/h3>";
if(preg_match_all("/$regexp/siU", $input, $matches, PREG_SET_ORDER)) {
foreach($matches as $match) {
$text=$match[0];
$text=strip_tags($text);
echo $text.'<br>'; }
}
meinewelt (01-10-2013)
theres a bot called blog commenting *****
I think I saw it on the forum. but it scrapes the top 100 or so results from google
Last edited by elviswong; 01-10-2013 at 07:29 AM.
GET THE PHEED|TAGGED|REDDIT|KEEK BOTS
MULTI-THREADED CLICK HERE ! WE ARE THE NUMBER #1 BOT MAKERS ON THE WEB
thankyou so much everyone!
@regme very kind! you are my php hero now![]()
Last edited by meinewelt; 01-11-2013 at 09:15 AM.
It's ok, problem in IP.
Try this code, if it will not work i'll give you link on script installed on my server.
PHP Code:$keyword_p=urlencode($_GET['key']);$ch = curl_init('http://www.google.com/search?q='.trim($keyword_p).'&hl=en&lr=&sa=X&tbo=1&num=100');curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_COOKIESESSION, true);curl_setopt($ch, CURLOPT_COOKIEJAR, dirname (__FILE__)."/cookie.txt");curl_setopt($ch, CURLOPT_COOKIEFILE, dirname (__FILE__)."/cookie.txt");$input = curl_exec($ch);
$regexp = "<li class=\"g\"><h3(.*)<\/h3>";
if(preg_match_all("/$regexp/siU", $input, $matches, PREG_SET_ORDER)) {
foreach($matches as $match) {
$text=$match[0];
$text=strip_tags($text);
echo $text.'<br>'; }
}
meinewelt (01-11-2013)
Bookmarks