xenova / chat-downloader

A simple tool used to retrieve chat messages from livestreams, videos, clips and past broadcasts. No authentication needed!
https://chat-downloader.readthedocs.io/
MIT License
958 stars 133 forks source link

[BUG] Title goes here #165

Closed artiction closed 2 years ago

artiction commented 2 years ago

Basic information

Describe the bug

The command being stuck after a while, usually happens with streams where livechat is pretty lively.

Command/Code used

If running from the command line, provide the following:

  1. The command used (including the verbose tag, -v):
    python -m chat_downloader -v --message_types "text_message paid_message membership_item" https://www.youtube.com/watch?v=example -o example.txt
  2. Output from the above command:
    [DEBUG] Continuation parameters: {'click_tracking': {'clickTrackingParams': 'CAEQl98BIhMI8siJ3IuY-QIVWDG3AB3Eywzs'}, 'continuation': '0ofMyAPMARpYQ2lrcUp3b1lWVU5uUVRKcVMxSnJjWEJaWHpobGVYTlFWWE00YzJwM0VndFhkMWRQZUZaYVp6QXhaeG9UNnFqZHVRRU5DZ3RYZDFkUGVGWmFaekF4WnlBQii30cbpjJj5AjAAQAFKOggAGAAgAEoECAEQAFDZ0cGv_Jf5AlgEeACiAQUaAwisAqoBBBAAGgCwAQDiAQwImriClwYQv56kkgFQ3bPz6YyY-QJYupSSwv-W-QKCAQIIAYgBAKABzPC76oyY-QK6AQIIBQ%3D%3D'}
    [DEBUG] Session headers: User-Agent, Accept-Language, origin, x-youtube-client-name, x-youtube-client-version, x-origin, x-goog-authuser, x-goog-visitor-id, content-type, referer
    [DEBUG] Logged-in info: {'key': 'logged_in', 'value': '0'}
    2022-07-27 10:13:31 | Todokete: Grandma looks rough lol
    2022-07-27 10:13:31 | Memers: WOOO GRANNY
    2022-07-27 10:13:32 | Blackrose727: Damn lmao
    2022-07-27 10:13:32 | Starless2: Nina
    2022-07-27 10:13:33 | (Member (2 months)) Alex Riley: GRANNY:_petoCheer::_petoCheer:
    2022-07-27 10:13:33 | The-Shocker-Wtf: LOL
    2022-07-27 10:13:34 | Tvanon: granma got the move
    2022-07-27 10:13:34 | YUI Kusakabe: aww granny
    2022-07-27 10:13:34 | Leonardo M: GILF??
    2022-07-27 10:13:35 | kurayami: Covid
    2022-07-27 10:13:36 | (Member (1 month)) stevobread: :_petoFlushed:cute cheerleader
    2022-07-27 10:13:36 | Mr. Krabs: GO GRANNY GO
    [DEBUG] Total number of messages: 12731
    [DEBUG] Continuation info: {'timeoutMs': 4803, 'continuation': '0ofMyAPMARpYQ2lrcUp3b1lWVU5uUVRKcVMxSnJjWEJaWHpobGVYTlFWWE00YzJwM0VndFhkMWRQZUZaYVp6QXhaeG9UNnFqZHVRRU5DZ3RYZDFkUGVGWmFaekF4WnlBQij7vZDsjJj5AjAAQAFKOggAGAAgAEoECAEQAFDZ0cGv_Jf5AlgEeACiAQUaAwisAqoBBBAAGgCwAQDiAQwImriClwYQv56kkgFQtvm97IyY-QJYupSSwv-W-QKCAQIIAYgBAKABpoHj7IyY-QK6AQIIBQ%3D%3D'}
    [DEBUG] Sleeping for 4803ms.
    [DEBUG] https://www.youtube.com:443 "POST /youtubei/v1/live_chat/get_live_chat?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8 HTTP/1.1" 200 None

    If the output is too long, you can attach a text file or remove output which does not constitute to the problem.

Expected behavior

NOT BEING STUCK

Screenshots!

image

Additional context/information

This was a problem I faced but it worked out well when I used WARP from cloudflare. Thing is, since last night, WARP broke my internet everytime I connect to it, it's either doing:

  1. Can't connect to the internet (internet disconnects after like 30 seconds)
  2. Can't start a new command without getting [DEBUG] Starting new HTTPS connection (1): www.youtube.com:443 [ERROR] Unable to establish a connection. Please check your internet connection. even though the internet is working fine (well, it's gonna disconnect again anyway.)

I've now updated to the latest version which is 0.2.0 I believe. I'll try using this with just my internet (including cloudflare's 1111 thing) and see if it works.

Edit: Yep, still happens. I'm 100% blaming my internet though

xenova commented 2 years ago

As you mentioned, this is an issue with your internet connection (and so, I cannot fix it).

Let me know if you have any other questions though.