youtube data api & zend framework
DESCRIPTION
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. - PowerPoint PPT PresentationTRANSCRIPT
Page:1
Youtube data api & Zend Framework
Reporters: Ching Long ChenReporters: Ching Long ChenSupervisor : Hsing MeiSupervisor : Hsing Mei
Date: 2008/10/16Date: 2008/10/16
Web Computing LaboratoryWeb Computing LaboratoryComputer Science and Information Engineering DepartmentComputer Science and Information Engineering Department
Fu Jen Catholic UniversityFu Jen Catholic University
Page:2
Outline
• Introduction• Background and Related Work • Evaluation• Conclusion• Reference
Page:3
Introduction
• Dydns• Appserv(apache+mysql+php)• Youtube data api• Zend framework
Page:4
Dydns configure
Page:5
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-pl1 AppServ version2.5.4a
• * Apache 2.0.54 * PHP 5.0.4 * MySQL 4.1.12a * MyODBC-3.51.11-2 * phpMyAdmin-2.6.2pl1
Page:6
Youtube data api video app inphp
Page:7
Zend Framework
• application/ controllers/ IndexController.php // 所有 Controller 一定要大寫開頭 models/
• views/ scripts/ index/ index.phtml • // 記得是 phtml, 不是 html
Page:8
Zend Framework module
• Zend_Auth // login module
• Zend_Db // database module
• Zend_Gdata // Google Application module
Page:9
ZendGdata-1.6.1\demos\Zend\Gdata\YouTubeVideoApp
Page:10
retrieve the comments for the video with the ID 'abc123813abc‘, use the following code:
• $yt = new Zend_Gdata_YouTube();• $commentFeed = $yt->getVideoCommentFeed('abc12
3813abc');
• foreach ($commentFeed as $commentEntry)• {• echo $commentEntry->title->text . "\n";• echo $commentEntry->content->text . "\n\n\n";• }
Page:11
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);
Page:12
Youtube data api
• YouTube Data API• Developer's Guide
– Java – .NET – PHP (now test)– Python
• Reference Guide • Migration Guide • Developer Keys • Libraries and Code
Page:13
Use YouTube Data API
• import gdata.youtube• import gdata.youtube.service • yt_service = gdata.youtube.service.YouTubeSe
rvice()
Page:14
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
Page:15
• [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
Page:16
• [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