oliver-lloyd / twitch-listener

Easy python bot for scraping Twitch chat data
MIT License
44 stars 10 forks source link

broken #6

Open dgamma3 opened 2 years ago

dgamma3 commented 2 years ago

Given I have

` from twitch_listener import listener

bot = listener.connect_twitch('zzz', 'xxx', yyy')

channels_to_listen_to = ['kittenclubhouse']

bot.listen(channels_to_listen_to, duration = 1800)

bot.parse_logs(timestamp = True)

bot.adj_matrix(weighted = False, matrix_name = "streamer_network.csv") `

when I run the program, then

2021-10-17 09:05:08,396 — b':tmi.twitch.tv NOTICE * :Improperly formatted auth\r\n' 2021-10-17 09:05:32,203 — b'' 2021-10-17 09:05:32,283 — b'' 2021-10-17 09:05:32,362 — b'' 2021-10-17 09:05:32,442 — b'' 2021-10-17 09:05:32,519 — b'' 2021-10-17 09:05:32,598 — b''

is output :p

MaximilianFreitag commented 2 years ago

Maybe try another oauth: Token. I also ran into some issues and after getting a new Token it was solved.

Another tip that I can give you is try using the VS code extension "Jupyter" that let's you write jupyter notebooks in vs code. So instead of running the twitch listener from a python file, try using the script on a jupyter notebook.

lebedynskyi commented 2 years ago

we have this message when we try to use app token instead of oAuth token