Giter Site home page Giter Site logo

tbf's People

Contributors

infinitay avatar vyneer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

infinitay

tbf's Issues

[StreamsCharts] Get direct timestamp for vod

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.

Output getting cut

image

As you can see from the image, stdout is getting cut after the first link it finds. I've noticed this happens a lot when there are multiple links found. The last link is the one that tends to get cut from my recollection.

Nightly version via GitHub Actions

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.

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.