chrippa / livestreamer

Command-line utility that extracts streams from various services and pipes them into a video player of choice. No longer maintained, use streamlink or youtube-dl instead.
http://livestreamer.io/
BSD 2-Clause "Simplified" License
3.88k stars 580 forks source link

How to parse json from html? #1109

Closed steven7851 closed 9 years ago

steven7851 commented 9 years ago

Recently I try to make plugin for zhanqi.tv. I try this to parse json but it can not work.

https://github.com/steven7851/livestreamer/blob/patch-3/src/livestreamer/plugins/zhanqi.py

intact commented 9 years ago

You can try somethink like this: https://gist.github.com/intact/21784f84566275d2bb53

steven7851 commented 9 years ago

Thank for your advice. I try to get roomID for api and it work well.