[MOD] Google Search

Back to Module Support

Page: 2  
From User Message Body
Mad_Clog
Post #947
user avatar
Member
Date: 8:19 pm, Mar 6 2009
Posts: 176


added !define function

Mad_Clog
Post #953
user avatar
Member
Date: 7:34 pm, Mar 25 2009
Posts: 176


Another update, fixes image searches

Coryf88
Post #1068
Member
Date: 1:25 pm, Oct 12 2010
Posts: 1


modules\google_search\google_search.php

Line 110:
From:
Code
$pattern = '#<h3 class=r><a href="([^"]*)" class=l>(([^<]|<[^a][^ ])*)</a></h3>#i';

To:
Code
$pattern = '#<h3 class="r"><a href="([^"]*)" class=l>(([^<]|<[^a][^ ])*)</a></h3>#i';


Line 130:
From:
Code
$pattern = '#<h2 class=r><font size=\+1><b>(.*)</b></h2>#Ui';

To:
Code
$pattern = '#<h2 class=r style="font-size:138%"><b>(.*)</b></h2>#Ui';


Line 176:
From:
Code
$getQuery = socket::generateGetQuery ( 'q=' . urlencode ( $args ['query'] ) . '&hl=en', 'video.google.' . $this->extension, '/videosearch' );

To:
Code
$getQuery = socket::generateGetQuery ( 'q=' . urlencode ( $args ['query'] ) . '&hl=en&tbs=vid:1', 'www.google.' . $this->extension, '/search' );


Line 177:
From:
Code
$this->ircClass->addQuery ( 'video.google.' . $this->extension, 80, $getQuery, $line, $this, 'sendVideoResults' );

To:
Code
$this->ircClass->addQuery ( 'www.google.' . $this->extension, 80, $getQuery, $line, $this, 'sendVideoResults' );


Line 188:
From:
Code
$pattern = '#srcurl="(.*)".*<div class="rl-title".*><a.*>(.*)</a></div>.*<div class="rl-details">(?:<div .*</div>)?(\d.*) \-<span class="rl-date">(.*) - </span>#iU';

To:
Code
$pattern = '#<a href="([^"]*)" class=l>((?:[^<]|<[^a][^ ])*)</a></h3><div> <span class=f><span style="nobr">([^<]*)</span> - <span style="nobr">([^<]*)</span>#iU';


   

Previous Page Pages (2) [ 1 2 ]  

Back to Module Support