Hello, So basically I want to know how to code an extractor that allows you to get the m3u8 file from an embedded video. I am trying to build a scraper to get animes episodes from websites like gogoanime or 9anime. The only thing I was able to scrape so far is the embedded link for the episodes. Any idea on how I can do it ?
Try to learn from the source code of similar projects.
Like what project?
YT-DLP has a list of extractors for lots of different sites. You could see if there are similar sites and see how their extractors work.
https://github.com/yt-dlp/yt-dlp/tree/master/yt_dlp/extractor
Or Animescraper has extractors for them, but it was last updated 6 years ago.
https://github.com/jQwotos/animeDownloaders/tree/master
https://github.com/jQwotos/anime_scrapers/tree/63b415fcaaa685f03b54fe6ee294c13178736637/scrapers
Maybe movie-web