Skip to content

chrismichaelps/9anime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d86997a · May 16, 2022

History

6 Commits
May 16, 2022
May 14, 2022
May 16, 2022
May 14, 2022
May 14, 2022
May 14, 2022
May 14, 2022
May 16, 2022
May 14, 2022
May 16, 2022
May 16, 2022
May 14, 2022
May 14, 2022
May 14, 2022

Repository files navigation

✓ 9anime (PoC) / Anime Scraper

Anime - Server Scraper

⚠️ work in progress ...

Environment

Create a .env file in the root of your project:

BASE_URL=https://9anime.vc

📚 Documentation

getAllEpisodes(epURL: string)

Episode List

(async () => {
  const episodeList = await getAllEpisodes(
    "https://9anime.vc/watch/tokyo-ghoul-790"
  );
})();
Episodes JSON
[
  {
    "episode": "1",
    "epURL": "https://9anime.vc/watch/tokyo-ghoul-790?ep=13547"
  },
  {
    "episode": "2",
    "epURL": "https://9anime.vc/watch/tokyo-ghoul-790?ep=13548"
  },
  {
    "episode": "3",
    "epURL": "https://9anime.vc/watch/tokyo-ghoul-790?ep=13549"
  },
  {
    "episode": "4",
    "epURL": "https://9anime.vc/watch/tokyo-ghoul-790?ep=13550"
  },
  {
    "episode": "5",
    "epURL": "https://9anime.vc/watch/tokyo-ghoul-790?ep=13551"
  },
  {
    "episode": "6",
    "epURL": "https://9anime.vc/watch/tokyo-ghoul-790?ep=13552"
  },
  {
    "episode": "7",
    "epURL": "https://9anime.vc/watch/tokyo-ghoul-790?ep=13553"
  },
  {
    "episode": "8",
    "epURL": "https://9anime.vc/watch/tokyo-ghoul-790?ep=13554"
  },
  {
    "episode": "9",
    "epURL": "https://9anime.vc/watch/tokyo-ghoul-790?ep=13555"
  },
  {
    "episode": "10",
    "epURL": "https://9anime.vc/watch/tokyo-ghoul-790?ep=13556"
  },
  {
    "episode": "11",
    "epURL": "https://9anime.vc/watch/tokyo-ghoul-790?ep=13557"
  },
  {
    "episode": "12",
    "epURL": "https://9anime.vc/watch/tokyo-ghoul-790?ep=13558"
  }
]

getEpisodeSources(epURL: string)

Episode Sources (servers).

(async () => {
  const sources = await getEpisodeSources(
    "https://9anime.vc/watch/tokyo-ghoul-790?ep=13547"
  );
})();
Sources JSON
[
  {
    "type": "dub",
    "serverName": "Vidstreaming",
    "server": {
      "sources": [
        {
          "file": "*.m3u8", // m3u8 URL
          "type": "hls"
        }
      ],
      "sourcesBackup": [],
      "tracks": [
        {
          "file": null,
          "kind": "thumbnails"
        }
      ],
      "server": 4
    }
  } // more ...
]

getSchedule()

Monthly schedule on broadcast of each episode.

(async () => {
  const schedule = await getSchedule();
})();
Schedule JSON
[
  {
    "date": "2022-05-16",
    "episodes": [
      {
        "episode": "7",
        "epURL": "https://9anime.vc/watch/yuu-gi-ou-go-rush-18000?ep=90911",
        "animeName": "Yuu Gi Ou: Go Rush!!",
        "time": "04:00"
      },
      {
        "episode": "7",
        "epURL": null,
        "animeName": "Healer Girl",
        "time": "17:30"
      },
      {
        "episode": "6",
        "epURL": null,
        "animeName": "AMAIM Warrior at the Borderline",
        "time": "19:00"
      },
      {
        "episode": "6",
        "epURL": null,
        "animeName": "Honzuki no Gekokujou: Shisho ni Naru Tame ni wa Shudan wo Erandeiraremasen 3rd Season",
        "time": "22:00"
      }
    ]
  } // more ...
]

🤝 Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request

👥 Credits


💢 Troubleshootings

This is just a personal project created for study / demonstration purpose and to simplify my working life, it may or may not be a good fit for your project(s).


❤️ Show your support

Please ⭐ this repository if you like it or this project helped you!
Feel free to open issues or submit pull-requests to help me improving my work.


🤖 Author

Chris M. Perez

You can follow me on github · twitter


Copyright ©2022 9anime.