Skip to main content

Python Wrapper for DouyuTV APIs, including support for accessing ChatRoom, e.g. DanMu

Project description

# pydouyu

Python Wrapper for DouyuTV APIs, including support for accessing ChatRoom, e.g. DanMu/弹幕.

# Installation

pip install fitz-douyu

# Example Usage

from douyu.chat.room import ChatRoom

def on_chat_message(msg):
print ‘[%s]:%s’ % (msg.attr(‘nn’), msg.attr(‘txt’))
def run():
room = ChatRoom(‘70068’) room.on(‘chatmsg’, on_chat_message) room.knock()
if __name__ == ‘__main__’:
run()

Project details


Release history Release notifications

This version
History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
fitz-douyu-0.0.1.tar.gz (4.6 kB) Copy SHA256 hash SHA256 Source None Apr 25, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page