Follow

>guy reverse engineers hanime API
>doesn't document it and writes a NodeJS module for it instead

· · Web · 2 · 0 · 2
@matrix i used to have a script that worked with v3 but they updated to the new api which i haven't looked through yet
their old API allowed you to download HD stuff without premium with just a simple header :D
@matrix they just reused identifiers with quality prefixes and i would just throw that in jq and sort them and then fetch the m3u8 playlist

@matrix here’s a quickstart for playing around:

curl https://hanime.tv/videos/hentai/imouto-twins-1 | grep -oP '(?<=\<script\>window\.__NUXT__=)\{.*\}(?=;\<\/script\>)' | jq

@matrix The module IS the documentation u dummy :satania_gyate:

@kakol Wut? I just wanna know what urls and headers return what. I don't understand webdev :NotLikeThis:

Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.