Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitch Chat Replay, only first 30 seconds get downloaded #12266

Open
Gorrrg opened this issue Feb 25, 2017 · 3 comments
Open

Twitch Chat Replay, only first 30 seconds get downloaded #12266

Gorrrg opened this issue Feb 25, 2017 · 3 comments

Comments

@Gorrrg
Copy link

@Gorrrg Gorrrg commented Feb 25, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.02.24.1. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.02.24.1

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

$ youtube-dl -v --skip-download --write-sub https://www.twitch.tv/videos/124677335
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--skip-download', '--write-sub', 'https://www.twitch.tv/videos/124677335']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.02.24.1
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 3.2, ffprobe 3.2
[debug] Proxy map: {}
[twitch:vod] 124677335: Downloading vod info JSON
[twitch:vod] 124677335: Downloading vod access token
[twitch:vod] 124677335: Downloading m3u8 information
[info] Writing video subtitles to: LoL - H2k-Gaming vs. Hong Kong Esports - Group A Decider Game 3 - IEM Katowice 2017 [2_2]-v124677335.rechat.json
<end of log>

Description of your issue, suggested solution and other information

Only the first messages are being saved to file. According to this forum post at discuss.dev.twitch.tv the API only sends out a 30 second window after the requested timestamp.

So hundreds requests must be made, also there has to be a time delay or users might get banned from Twitch, AFAIK.

There's a python script that sucessfully downloads an entire chat replay in human readable plain text omitting the uninteresting JSON details. The developer commented in his code that he has to account for duplicate lines which will be sent when requesting the 30 second snippets, just FYI.

@Tatsh
Copy link
Contributor

@Tatsh Tatsh commented Mar 20, 2018

This is a bit out of date as apparently the host rechat.twitch.tv being used is no longer valid since at least October 2017. The API has changed completely.

PetterKraabol/Twitch-Chat-Downloader#23 (comment)

@davispuh
Copy link

@davispuh davispuh commented Feb 11, 2019

So seems currently youtube-dl can't download chat for Twitch 😢

I'm getting

[info] Writing video subtitles to: v377500213.rechat.js
WARNING: Unable to download subtitle for "rechat": Unable to download webpage: <urlopen error [Errno -2] Name or service not known> (caused by URLError(gaierror(-2, 'Name or service not known'),))
@Gorrrg
Copy link
Author

@Gorrrg Gorrrg commented Feb 19, 2019

For the time being, use Twitch Chat Downloader by Petter Kraabøl: https://github.com/PetterKraabol/Twitch-Chat-Downloader

It's an extra step but it's pretty advanced and does the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.