资源描述:
《21 Recipes for Mining Twitter.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、DistillingRichInformationfromMessyData21RecipesforMiningTwitterMatthewA.Russell21RecipesforMiningTwitter21RecipesforMiningTwitterMatthewA.RussellBeijing•Cambridge•Farnham•Köln•Sebastopol•Tokyo21RecipesforMiningTwitterbyMatthewA.RussellCopyright©2011MatthewA.Russell.
2、Allrightsreserved.PrintedintheUnitedStatesofAmerica.PublishedbyO’ReillyMedia,Inc.,1005GravensteinHighwayNorth,Sebastopol,CA95472.O’Reillybooksmaybepurchasedforeducational,business,orsalespromotionaluse.Onlineeditionsarealsoavailableformosttitles(http://my.safaribook
3、sonline.com).Formoreinformation,contactourcorporate/institutionalsalesdepartment:(800)998-9938orcorporate@oreilly.com.Editor:MikeLoukidesCoverDesigner:KarenMontgomeryProductionEditor:KristenBorgInteriorDesigner:DavidFutatoProofreader:KristenBorgIllustrator:RobertRom
4、anoPrintingHistory:February2011:FirstEdition.NutshellHandbook,theNutshellHandbooklogo,andtheO’ReillylogoareregisteredtrademarksofO’ReillyMedia,Inc.21RecipesforMiningTwitter,theimageofapeach-facedlovebird,andrelatedtradedressaretrademarksofO’ReillyMedia,Inc.Manyofthe
5、designationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andO’ReillyMedia,Inc.,wasawareofatrademarkclaim,thedesignationshavebeenprintedincapsorinitialcaps.Whileeveryprecautionhasbeentakeninthepr
6、eparationofthisbook,thepublisherandauthorassumenoresponsibilityforerrorsoromissions,orfordamagesresultingfromtheuseoftheinformationcon-tainedherein.ISBN:978-1-449-30316-7[LSI]1296485191TableofContentsPreface...........................................................
7、..........viiTheRecipes..................................................................11.1UsingOAuthtoAccessTwitterAPIs11.2LookingUptheTrendingTopics31.3ExtractingTweetEntities51.4SearchingforTweets71.5ExtractingaRetweet’sOrigins101.6CreatingaGraphofRetweetRelati
8、onships131.7VisualizingaGraphofRetweetRelationships151.8CapturingTweetsinReal-timewiththeStreamingAPI201.9MakingRobustTwitterRequests221.1