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


Download files

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

Source Distribution

fitz-douyu-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file fitz-douyu-0.0.1.tar.gz.

File metadata

  • Download URL: fitz-douyu-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fitz-douyu-0.0.1.tar.gz
Algorithm Hash digest
SHA256 18307ae7a4bcfa02b8c7f1b135e6544bd124cddf3651a354e9bfb093c41fa230
MD5 b64cbe4b76427aca68e4a63709dcde36
BLAKE2b-256 4fcfe1e5ce4a54dd7c49187fcaaa699676f6691409e238f997c8389d6ce428db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page