Code Monkey home page Code Monkey logo

superchatsum's Introduction

SuperChatSum

A tool which calculates the amount of super chats of a previous Youtube live stream.

Setup

git clone --recursive https://github.com/lekoOwO/SuperChatSum

Fill your CurrencyLayer API Key in config.ini

pip install -r chat-replay-downloader/requirements.txt

Linux

chmod +x run.bash

Usage

Windows

run.ps1 https://www.youtube.com/watch?v=97w16cYskVI

Linux

run.bash https://www.youtube.com/watch?v=97w16cYskVI

Output:

UUID: 2d48c0cf-22d1-4d84-8c9d-40ec64f21f9e

Total: 478211.4029 TWD
1564 super chats received.
29 super stickers received.
0 new subscribers received.


Max: 10676.5538 TWD (500 SGD)
Min: 7.6974 TWD (1.43 BRL)

superchatsum's People

Contributors

lekoowo avatar

Watchers

 avatar

superchatsum's Issues

Encounter FileNotFoundError

你好,我無法成功使用此專案,提供錯誤資訊如下
測試網址: https://www.youtube.com/watch?v=Dz0ooBrNiag
謝謝

2021-06-30 00 04 37

  File "E:\repos\SuperChatSum\chat-replay-downloader\chat_replay_downloader.py", line 454, in <module>
    chat_messages = chat_downloader.get_chat_replay(
  File "E:\repos\SuperChatSum\chat-replay-downloader\chat_replay_downloader.py", line 409, in get_chat_replay
    return self.get_youtube_messages(match.group(1), start_time, end_time, message_type)
  File "E:\repos\SuperChatSum\chat-replay-downloader\chat_replay_downloader.py", line 253, in get_youtube_messages
    continuation_by_title_map = self.__get_initial_youtube_info(video_id)
  File "E:\repos\SuperChatSum\chat-replay-downloader\chat_replay_downloader.py", line 158, in __get_initial_youtube_info
    ytInitialData = json.loads(next(line.strip()[len('window["ytInitialData"] = '):-1]
  File "C:\Python39\lib\json\__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "C:\Python39\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Python39\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "E:\repos\SuperChatSum\process.py", line 64, in <module>
    with open(FILE_NAME) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'E:\\repos\\SuperChatSum\\output\\4460410d-3443-4a46-b57d-73c11712139b.json'```

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.