160 likes | 316 Views
Youtube data api & Zend Framework. Reporters: Ching Long Chen Supervisor : Hsing Mei Date: 2008/10/16. Web Computing Laboratory Computer Science and Information Engineering Department Fu Jen Catholic University. Introduction Background and Related Work Evaluation Conclusion Reference.
E N D
Youtube data api & Zend Framework Reporters: Ching Long Chen Supervisor : Hsing Mei Date: 2008/10/16 Web Computing Laboratory Computer Science and Information Engineering Department Fu Jen Catholic University
Introduction Background and Related Work Evaluation Conclusion Reference Outline
Introduction • Dydns • Appserv(apache+mysql+php) • Youtube data api • Zend framework
appserv • AppServ version2.4.4a • * Apache 1.3.33 * PHP 4.3.10 * MySQL 4.1.8 * MyODBC-3.51.11-2 * phpMyAdmin-2.5.7-pl1AppServ version2.5.4a • * Apache 2.0.54 * PHP 5.0.4 * MySQL 4.1.12a * MyODBC-3.51.11-2 * phpMyAdmin-2.6.2pl1
Zend Framework • application/ controllers/ IndexController.php // 所有Controller一定要大寫開頭 models/ • views/ scripts/ index/ index.phtml • // 記得是phtml,不是html
Zend Framework module • Zend_Auth // login module • Zend_Db // database module • Zend_Gdata // Google Application module
retrieve the comments for the video with the ID 'abc123813abc‘, use the following code: • $yt = new Zend_Gdata_YouTube(); • $commentFeed = $yt->getVideoCommentFeed('abc123813abc'); • foreach ($commentFeed as $commentEntry) • { • echo $commentEntry->title->text . "\n"; • echo $commentEntry->content->text . "\n\n\n"; • }
Don’t know the video ID ,only has the URL • $yt = new Zend_Gdata_YouTube(); $videoEntry = $yt->getVideoEntry('abc123813abc'); • // we don't know the video ID in this example, but we do have the URL • $commentFeed = $yt->getVideoCommentFeed(null, $videoEntry->comments->href);
Youtube data api • YouTube Data API • Developer's Guide • Java • .NET • PHP (now test) • Python • Reference Guide • Migration Guide • Developer Keys • Libraries and Code
Use YouTube Data API • import gdata.youtube • import gdata.youtube.service • yt_service = gdata.youtube.service.YouTubeService()
Reference • [1] Topic taxonomy adaptation for group profiling Lei Tang, Huan Liu, Jianping Zhang, Nitin Agarwal, John J. Salerno January 2008 ACM Transactions on Knowledge Discovery from Data (TKDD), Volume 1 Issue 4 • [2] Sandeep Pandey, Christopher Olston February 2008 WSDM '08: Proceedings of the international conference on Web search and web data mining • [3] Anupriya Ankolekar, Markus Krötzsch, Thanh Tran, Denny Vrandecic May 2007 WWW '07: Proceedings of the 16th international conference on World Wide Web • [4] Laurence A. F. Park, Kotagiri Ramamohanarao November 2007 CIKM '07: Proceedings of the sixteenth ACM conference on Conference on information and knowledge management
[5] Timothy W. van der Horst, Kent E. Seamons May 2007 WWW '07: Proceedings of the 16th international conference on World Wide Web • [6] Kirstie Hawkey, Kori M. Inkpen May 2007 GI '07: Proceedings of Graphics Interface 2007 • [7] Chung-Yi Weng, Wei-Ta Chu, Ja-Ling Wu September 2007 MIR '07: Proceedings of the international workshop on Workshop on multimedia information retrieval • [8] Lyndon Kennedy, Mor Naaman, Shane Ahern, Rahul Nair, Tye Rattenbury September 2007 MULTIMEDIA '07: Proceedings of the 15th internationaconference on Multimedia
[9] Alvin Chin, Mark Chignell August 2006 HYPERTEXT '06: Proceedings of the seventeenth conference on Hypertext and hypermedia • [10]Meishan Hu, Aixin Sun, Ee-Peng Lim November 2007 CIKM '07: Proceedings of the sixteenth ACM conference on Conference on information and knowledge management • http://code.google.com/apis/youtube/developers_guide_python.html#Comments • http://phorum.study-area.org/index.php?topic=50393.0