Livestreamer. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Christopher Rosell
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://github.com/chrippa/
Livestreamer. ű×
Livestreamer. ¼³¸í
LiveStreamer´Â »ç¿ëÀÚ Á¤ÀÇ ºñµð¿À Ç÷¹À̾¼ ´Ù¾çÇÑ ½ºÆ®¸®¹Ö ¼ºñ½º¿¡¼ ½ºÆ®¸²À» ½ÃÀÛÇÏ´Â ¸í·É ÁÙ ÀÀ¿ë ÇÁ·Î±×·¥ÀÔ´Ï´Ù .- Justin.tv/twitch.tv- youtin.tv-svtplay- USTReam- YouTubeNote : Justin.tv Ç÷¯±×ÀÎÀº rtmpdump°¡ ÇÊ¿äÇÕ´Ï´Ù. JTV ÅäÅ« Áö¿ø (ÃÖ±Ù GIT) .LiveStreamer´Â Python ¹öÀü> = 2.6 ¹×> = 3.0.Install (Linux, OS X µî)°ú ȣȯµË´Ï´Ù. ÆÄÀ̽ã°ú Python SetupTools°¡ ÀÖ´ÂÁö È®ÀÎÇϽʽÿÀ. sudo python setup.py ¼³Ä¡ LiveStreamer - -helpSaving Àμö AKA config filelevestreamer´Â ~ / .livestreamerrc ÆÄÀÏ¿¡¼ Àμö¸¦ ÀÐÀ» ¼ö ÀÖ½À´Ï´Ù. ¿¹Á¦ ÆÄÀÏ : Player = mplayerjtv-cookie = _jtv3_session_id = Arandomhashassing LiveStreamer ¶óÀ̺귯¸® ¶óÀ̺귯¸®µµ ¶óÀ̺귯¸®À̱⵵ÇÕ´Ï´Ù. ªÀº ¿¹ : import livestreamerurl = "http://twitch.tv/day9tv"channel = livestreamer.resolve_url (URL) streams = channel.get_streams () stream = streams fd = stream.open () true : data = fd.read (1024) len (µ¥ÀÌÅÍ) == 0 : break # datafd.close () Á¦Ç°ÀÇ È¨ÆäÀÌÁö·Î ¹«¾ð°¡¸¦ ¼öÇàÇϽʽÿÀ.
Livestreamer. °ü·Ã ¼ÒÇÁÆ®¿þ¾î