Coder Social home page Coder Social logo

317070 / python-twitch-stream Goto Github PK

View Code? Open in Web Editor NEW
59.0 59.0 22.0 65 KB

Python-twitch-stream is a simple lightweight library, which you can use to send your python video to twitch and react with the chat in real time.

License: MIT License

Python 100.00%

python-twitch-stream's People

Contributors

317070 avatar crackcraft avatar crizcraig avatar gachl avatar holdengreen avatar nhdaly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

python-twitch-stream's Issues

If username is not all lowercase, it is able to send chat messages but cannot receive them.

For TwitchChatStream, if username has capital letters in it, the chatstream.twitch_receive_messages() doesn't ever return messages.

It is able to send messages, but not receive them.

Here is a simple example:

with TwitchChatStream(
      username=twitch_username,
      oauth=twitch_oauth,
      verbose=False) as chatstream:

  chatstream.join_channel('<my_lowercase_username>')
  print('connected to: ', chatstream.current_channel)

  chatstream.send_chat_message('Hello!')

  # The main loop to poll the chat.
  while True:
      received = chatstream.twitch_receive_messages()

      # process all the messages
      if received:
          print("received")

If twitch_username has capitals in it, the send succeeds but never receives messages, whereas if it's all lowercase, everything works. This even happens if i manually force join_channel to the lowercase named channel.

Parameters for output stream

Make more parameters for the output stream modifiable

  • Maybe make the entire command line used changeable as well?

Can't use mp3 for audio

So I'm trying to use an mp3 file as an audio source but I can't figure it out. Any help would be greatly appreciated, or better yet how to use pyttsx3 output as audio.

Many thanks for any help

Threading exceptions in Python 2.7

Hi, I am running the example code (exactly) provided in the README, and I am intermittently (like, once per 5-10 runs) getting this exception, and then the process stops working:

Unhandled exception in thread started by <bound method Thread.__bootstrap of <Thread(Thread-85, stopped daemon 4523905024)>>
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 774, in __bootstrap
    self.__bootstrap_inner()
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 789, in __bootstrap_inner
    del _limbo[self]
KeyError: <Thread(Thread-85, stopped daemon 4523905024)>

Any ideas?
Thanks!

Stable, stutter-less ouput stream

Stabilize the output-stream. The code is already in zoomingstream, but a lot of code needs to be removed from that file in order to clean up that mess.

0auth

Traceback (most recent call last):
File "/root/Desktop/python-twitch-stream-master/examples/color.py", line 34, in
with TwitchBufferedOutputStream(
File "/usr/local/lib/python3.9/dist-packages/twitchstream/chat.py", line 44, in enter
self.connect()
File "/usr/local/lib/python3.9/dist-packages/twitchstream/chat.py", line 132, in connect
s.send('PASS %s\r\n' % self.oauth)
TypeError: a bytes-like object is required, not 'str'

i am lost. can anyone help me set this up?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.