vyneer / tbf Goto Github PK
View Code? Open in Web Editor NEWfinds VOD playlists on Twitch
License: MIT License
finds VOD playlists on Twitch
License: MIT License
The current way to grab the VODs timestamp can now be found within the pages source code.
Example URL: https://streamscharts.com/channels/robcdee/streams/39638619239
HTML Snippet:
<div>
<div class="-mt-2 overflow-x-hidden overflow-y-auto max-h-148" x-data="twitchClipsBlock()" x-init="getClips($dispatch)" data-requests="[{"broadcaster_id":"169185650","started_at":"2022-09-04T00:47:52+00:00","ended_at":"2022-09-04T04:47:52+00:00","first":50},{"broadcaster_id":"169185650","started_at":"2022-09-04T04:47:52+00:00","ended_at":"2022-09-04T08:47:52+00:00","first":50},{"broadcaster_id":"169185650","started_at":"2022-09-04T08:47:52+00:00","ended_at":"2022-09-04T11:50:00+00:00","first":50}]">
...
</div>
</div>
Seems like a payload used for them to fetch all the clips. Only relevant one
Selector: div > div[data-requests]
The one concern I have is that they might change this in the future. Around two weeks ago you could still obtain the direct start timestamp, but you had to listen for network calls as they called Twitch's API for clips with the same payload. I noticed today when trying to add this improvement that they have changed it so the clip calls for a particular stream aren't made on the user's machine AFAIK but rather their backend? Instead, now the payload is within the HTML.
Seems like lately TBF has been getting triggered by what I assume is Cloudflare? I keep getting the following error
[2022-09-04T21:45:08.673Z ERROR tbf] couldn't process the url: HTTP status client error (403 Forbidden) for url (https://streamscharts.com/channels/robcdee/streams/39638619239)
Though on the other hand, it usually works after 3-6 attempts
Is it possible for you to also add an action to build a nightly version of tbf with respect to the earliest commits? Would be nice in cases such as now where the version wasn't bumped but changes were made so the workflow never ran.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.