1. Trang chủ >
  2. Công Nghệ Thông Tin >
  3. Quản trị mạng >

Hack 77. Visualize Yahoo! Web Search Results

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (15.01 MB, 888 trang )


You'llfindsomesiteswithinformationaboutDNA,butit's

difficulttofindpatternswithintheresults.Youcouldmentally

categorizesitesasyoubrowsethroughthepagesofresults,but

Grokkercandothecategorizationforyou,quicklygivingyoua

senseofthetypeofinformationrelatedtothequeryDNA.

PerformthesamequeryatGrokker,andyou'llseetheradically

differentdisplayofresultsshowninFigure5-2.

IttakesafewminutestoorientyourselftoaGrokkermap,but

onceyouknowhowtoreadtheresults,youcanscanalarge

amountofinformationfairlyquickly.



Figure5-2.AGrokkermapforDNA



EachcircleonaGrokkermaprepresentsacategory,andeach

squarerepresentsaspecificdocumentinthesearchresults.You

canclickwithinacircletozoominonacategoryandseethe

documentswithin.Asyoucansee,Grokkergroupedresultsfor

thequeryDNAintocategoriessuchasBasic,Testing,and

Molecule.ThehighlightedDoubleHelixcategoryiswithinatoplevelStructurecategory.AndwithintheDoubleHelixcategory

arefoursquaresthatrepresentdocumentsthatdiscussthe

DoubleHelixstructureofaDNAmolecule.Ataglance,youcan

seesomepatternsemergingfromthesearchresultsthatyou

couldn'tgetfromasimplelistofdocuments.

AcircleshadedlikeasphereonaGrokkermaprepresentsa



categorywithseveralresults.Toseemoredetailswithinthe

category,youcanclickthespheretozoomin.Asyouzoomin

todifferentpartsofthesearchresults,youcanfindmore

detailsaboutthedocumentsintheresults.Figure5-3showsa

documentdetailwithintheDoubleHelixcategory.



Figure5-3.SitedetailsonaGrokkermap



Asyouclicktoviewdocumentdetails,you'llseeathumbnail

previewandsummaryofthedocumentintherightframe.To

zoombacktoyouroriginalviewofthemap,clicktheToplinkat



thetopofmap.

InadditiontotheautomaticcategorizationonaGrokkermap,

youcancreateyourowncategorieswithinsearchresults.From

themainmap,right-clickanyemptyspaceandchooseCreate

fromthemenu.Thiswillcreateablankcircle.Clickjustbelow

thecircletogiveyournewcategoryatitleandthenstart

clickinganddraggingdocumentsorcategoriesintoyournew

category,asshowninFigure5-4.



Figure5-4.AcustomcategoryonaGrokkermap



Acustomcategoryisahandywaytoassembleahandfulof

documentstoexplorefromthehundredsofdocumentsonthe

originalGrokkermap.Similarly,youcandeleteanycategories

fromtheresultsbyright-clickingacircleandchoosingDelete

fromthemenu.

OnceyouputthetimeintocustomizingaGrokkermap,youcan

shareitwithothersandsaveitforyourselfbyclickingtheEmail

YourGrokkerMaplinkatthetopofthepage.Fillouttheform,

andGrokkerwillsendalinktoyourcustommaptoany

addressesyouspecify.



Inthelower-leftcornerofthemap,you'llseeaShowToolslink.These

toolsletyousearchwithinthemap,filtersitesbydateandYahoo!

rank,andadjustthelookandfeel.Youcanchangefromacircularmap

toasquaremap,orchangethecolorstodarktextonalight

background.



AnotherbenefitofusingGrokkermapsisthatyou'llfindsites

deepwithinsearchresultsthatotherwiseyoumightneverhave

seen.You'dneedtoreadthrougheightpagesofYahoo!Web

Searchresultstoseeallofthedocumentsthatmakeupa

singleGrokkermap.Ifnothingelse,playingwiththisYahoo!

visualizationshouldbringsomeresultstoyourattentionthat

youwouldn'thaveseenotherwise.



Hack78.FindLinkstoAnyWebSite



Yahoo!cantellyouwhichsiteslinktoanyothersite,and

yLinkbacksusesYahoo!SearchWebServicestofindlinks

tothecurrentpageyou'rebrowsing.

Whenyoubrowsetoawebsiteyou'veneverseenbefore,you

don'thaveverymuchadvanceknowledgeaboutthesite.You

mightknowthatyou'vefollowedalinkfromaparticularsite

thatyoureadfrequently,oryoumighthavefoundthesitein

somesearchresultsforacertainsearchterm.Ofcourse,the

siteitselfcantellyouquiteabit,butthatstilldoesn'tgiveyou

anycluesaboutwherethesitefitsintothelargerWeb.With

somesearchingatYahoo!,youcangetextrainfoaboutasite

byusingthespeciallink:syntax.

Ifyouwanttofindwhatsitesarelinkingtoanyotherparticular

site,youcanbrowsetohttp://search.yahoo.comandenterthis

query:link:insertURL.Insteadofstandardsearchresults,Yahoo!

willdisplayalistofthesitesthatlinktotheURLyou've

specifiedinthequery.Forexample,ifyou'dliketofindout

wheretheO'ReillyHackssitefitsintotheWeb,youcouldsearch

forlink:http://hacks.oreilly.com.

Intheresults,youimmediatelygetasenseofhowmanypages

linktothesiteandwhatkindsofsitesarelinkingthere.If

you'rebrowsingtheWeb,leavingasitetodoaquickYahoo!

link:searchcanbeannoyingifyou'djustliketogetthissense

aboutthecurrentsiteyou'revisiting.Tofindthesites,youneed

tocopythecurrentURLfromyourbrowseraddressbar,opena

newwindowortab,browsetoYahoo!,andthenassemblethe

properquery.It'saquickprocess,butyoucanspeeditup

considerablywithabitofclassicASPandaJavaScript



bookmarklet.

ThishackusesJavaScripttogettheURLofthecurrentpage

you'reviewinginyourbrowser.Fromthere,itpassestheURLto

aserver-sidescriptthatassemblestheproperYahoo!queryand

fetchesthetop10resultswithYahoo!SearchWebServices.A

newpop-upwindowwillgiveaquicklookatwhichsitesare

linkingtothecurrentpage,withoutleavingyourplace.



5.3.1.TheCode

Thefirstpartofthishackisaserver-sidescriptthatretrieves

thesearchresultsandformatsthemfordisplay.TheHTML

resultwillendupbeinginsertedintoaseparatepop-upbrowser

windowabovethecurrentpage.

ThescriptacceptsaURLwiththequerystringvariableq.From

there,itcreatesaYahoo!SearchWebServicesURLusingthe

speciallink:syntax.

Tocreatethescript,savethefollowingcodetoafilecalled

yl.aspandbesuretoincludeyourownuniqueapplicationIDin

thecode:















































































body{



background-color:#fff;



color:#000;



font-family:verdana,sans-serif;



font-size:11px;



margin:0px;



padding:0px;



border:0px;





Xem Thêm
Tải bản đầy đủ (.pdf) (888 trang)

×