- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name: Maxime
Subject: Re: How did you make 43n39e.ru to search on youtube and how did you 
get the images for the videos?

At 43n39e.ru supplemental results of video search come from separate database, 
where youtube site indexed along with other russian video hostings. To include 
those resuls a some AJAX-like thechique is used. I'm using the following 
command to index youtube site:

Section ytid    0       64      "video_id=([^\'&]*)&" "$1"
Section ytid    0       64      "video_id:'([^\']*)'" "$1"

Period 7d
Realm hrefonly http://www.youtube.com/categories*
URL http://www.youtube.com/categories
Period 2h
Server page hrefonly http://www.youtube.com/
Period 180d
Realm regex ^http://www.youtube.com/watch\?v=[0-9a-zA-Z_]+$
disallow http://www.youtube.com/player*
Allow *

I use the fllowing construction in search template to drow preview picture of 
Youtube movies:
<!IFNOT NAME="ytid" VALUE=""><img 
src="http://img.youtube.com/vi/$(ytid)/default.jpg" border="0"></a> 
<!ENDIF>
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

Read the full topic here:
http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=02;topic_id=1208878666

Ответить