Python-XMLTV.

XMLTV ÆÄÀÏÀ» ÀÐ°í ¾²´Â ÆÄÀ̽㠸ðµâ
Áö±Ý ´Ù¿î·Îµå

Python-XMLTV. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • LGPL v3
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • James Oakley
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://bitbucket.org/jfunk/

Python-XMLTV. ű×


Python-XMLTV. ¼³¸í

Python-XMLTV´Â XMLTV µ¥ÀÌÅÍ¿¡ ´ëÇÑ ¾×¼¼½º¸¦ Á¦°øÇÏ´Â Python ¶óÀ̺귯¸®ÀÔ´Ï´Ù. XMLTV´Â TV Listings¸¦ ÀúÀåÇϱâÀ§ÇÑ XML Çü½ÄÀÔ´Ï´Ù. XMLTV¿¡ ´ëÇÑ Á¤º¸´Â http://membled.com/work/apps/xmltv/usageusage¿¡¼­ ãÀ» ¼ö ÀÖ½À´Ï´Ù. ÀϹÝÀûÀ¸·Î Print Print Import Print Print #¿¡¼­ XMLTV °¡Á® ¿À±â # ·ÎÄÉÀÏÀ» º¯°æ ÇؾßÇÏ´Â °æ¿ì : # xmltv.locale = 'latin-1'# XMLTV ÆÄÀÏ¿¡¼­ »ç¿ë µÈ ³¯Â¥ Çü½ÄÀ» º¯°æ ÇؾßÇÏ´Â °æ¿ì : # xmltv.date_format = '% y % m % D % h % m % s % z 'filename ='/ path / to / xmltv / file '# xmltv ÆÄÀÏ (¼Ò½º µî)¿¡ ´ëÇÑ Àμâ Á¤º¸ Àμâ (XMLTV.READ_DATA (open (filename,'r ')) # Àμâ ä³Î print (xmltv .read_Channels (¿­±â (ÆÄÀÏ À̸§, 'r')) # Àμâ ÇÁ·Î±×·¥ Àμâ (xmltv.read_programmes (xmltv.read_programmes (¿­±â (filename, 'r')) ÇöÀç »ç¿ëÇؾßÇÏ´Â Àб⿡ ¼¼ °¡Áö ±â´ÉÀÌ ÀÖ½À´Ï´Ù. ** READ_DATA **` `(file_object) -> XMLTV ÆÄÀÏ¿¡¼­ ¼Ò½º ¹× ±âŸ Á¤º¸¸¦ °¡Á® ¿À½Ê½Ã¿À. Ư¼º »çÀü (¿¹ : :: { 'date': u'20030702230041 -0300 ','generator-info-name ': u'tv_grab_na v3.20030629', '»ý¼º±â - Á¤º¸ - URL': u'http : / /sourceforge.net/projects/xmltv ','source-info-name ': u'zap2it', 'source-info-url': u'http : //www.zap2it.com '} ** read_channels **` `(file_object) -> list`` ¸ðµÎ ä³ÎÀ» °¡Á®¿É´Ï´Ù. ä³ÎÀ» ³ªÅ¸³»´Â Çؽà ¸ñ·Ï (¿¹ : ,'id ': u'c10eltv.zap2it.com'}, { 'display-name': ,'¾ÆÀÌÄÜ ': ,'id ': u'c11cbht.zap2it.com'}] ** read_programmes **``(file_object) -> list```¸ðµç ÇÁ·Î±×·¥À» ¾òÀ¸½Ê½Ã¿À. ÇÁ·Î±×·¥À» ³ªÅ¸³»´Â Çؽà ¸ñ·Ï, ¿¹ : ÇÁ·Î±×·¥À» ³ªÅ¸³»´Â ´ÙÀ½°ú °°ÀÌ :: }],'Ä«Å×°í¸® ': }, { 'audio': }],'ä³Î ': u'c36wuhf.zap2it.com', 'Desc': ,'µî±Þ ': ,'½ÃÀÛ ': U'20030702000000 ADT', 'STOP': U'20030702003000 ADT ','SUB-TITLE ': , 'ÀÚ¸·' : ,'title ': }] ¶ÇÇÑ ÀÛ°¡ Ŭ·¡½º°¡ ÀÖ½À´Ï´Ù. Ç×»ó ¿Ã¹Ù¸¥ XMLTV µ¥ÀÌÅ͸¦ ÀÛ¼ºÇؾßÇÕ´Ï´Ù. allstrings, Unicode¿¡ ÀÖ¾î¾ßÇÕ´Ï´Ù. ** __ init __ **`(fp, encoding = "iso-8859-1", date = none, source_info_url = none, source_info_name = none, generator_info_url = none, generator_info_name = none)``->`writer``´Â ÀÛ°¡ °³Ã¼¸¦ ¹ÝȯÇÕ´Ï´Ù. Àμö :``fp``xmltv µ¥ÀÌÅ͸¦``encoding ''¿¡``encoding '¿¡ ¾²´Â ÆÄÀÏ °´Ã¼°¡ »ç¿ëµÉ ÅؽºÆ® ÀÎÄÚµùÀÔ´Ï´Ù. * ±âº»°ªÀº "ISO-8859-1`` *``date``ÀÌ µ¥ÀÌÅÍ°¡ »ý¼º µÈ ³¯Â¥ÀÔ´Ï´Ù. * ¼±ÅÃÀû *```source_info_url`` µ¥ÀÌÅÍ ¼Ò½º¿¡ ´ëÇÑ Á¤º¸¸¦À§ÇÑ URL. * ¼±ÅÃÀû *``source_info_name```` source_info_url``ÀÇ Àΰ£ ÀÐÀ» ¼öÀÖ´Â ¼³¸í. * ¼±ÅÃÀû *``generator_info_url`` XMLTV ¹®¼­¸¦ »ý¼ºÇÏ´Â ÇÁ·Î±×·¥¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ³»¿ëÀº URLÀÔ´Ï´Ù. * ¼±ÅÃÀû *`generator_info_name``` Generator_Info_URL``ÀÇ Àΰ£ÀÌ ÀÐÀ» ¼öÀÖ´Â ¼³¸í. * ¼±ÅÃÀû ** ** write_channel **``(ä³Î)``ä³Î »çÀü ¾²±â ¿¹Á¦ ä³Î »çÀü :: { 'display-name': , ' ¾ÆÀÌÄÜ ': , 'id': u'c11cbht.zap2it.com ','url ': u :' http://www.cbc.com '} ** write_programme **``(ÇÁ·Î±×·¥)``ÇÁ·Î±×·¥ »çÀü ¾²±â ´ÙÀ½ÀÇ ¿¹Á¦ »çÀü :: {'¿Àµð¿À ': , 'Ä«Å×°í¸®': ,'ä³Î ': u'c36wuhf.zap2it.com', 'Country': ,' Å©·¹µ÷ : ,'¹è¿ì ': }], '³¯Â¥': ,'desc ': ,' ¾ð¾î ': , 'last-change': ,'±æÀÌ ': , 'New': , 'Oright'¾ð¾î ': , 'Premiere': ,'ÀÌÀü¿¡ --shown ': ,'µî±Þ ': , 'star-rate': ,'°¡Ä¡ ': U'4 / 5'}], '½ÃÀÛ': U'20030702000000 ADT ','STOP ': U'20030702003000 ADT', 'SUB-TITLE': ,'title ': , 'ºñµð¿À': } ** ³¡ **`` ()`` Á¾·á ÅÂ±× ÆÄÀÏÀ» ´Ý±â Àü¿¡ ÀÌ°ÍÀ» È£ÃâÇϽʽÿÀ. Á¦Ç°ÀÇ È¨ÆäÀÌÁö


Python-XMLTV. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

metargs.

±¸¼º ÆÄÀÏ°ú ¸í·É ÁÙ ÀμöÀÇ Á¶ÇÕÀ» »ç¿ëÇÏ¿© ±¸¼ºÀ» Áö¿øÇÏ´Â ¶óÀ̺귯¸® ...

83

´Ù¿î·Îµå