carlos-burelo / monoschinos-api

REST API written in Typescript and Node JS under the concept of Web Scraping, to extract data from the Monoschinos2.com page
https://carlosburelo.vercel.app/monoschinos-api
5 stars 4 forks source link

Some queries do not load correctly (PATH: /ver/:id) #2

Closed jeluchu closed 2 years ago

jeluchu commented 2 years ago

Request and Response according to documentation

PATH: /ver/:id

Querys Params
none id
{
  "title": "Kaifuku Jutsushi no Yarinaoshi. 2 ",
  "nextEpisodes": [
    {
      "image": "https://monoschinos2.com/assets/img/serie/episodio/kaifuku-jutsushi-no-yarinaoshi-3.png",
      "date": "27 Ene 2021",
      "title": "Kaifuku Jutsushi no Yarinaoshi",
      "no": "Capitulo 3"
    }
  ],
  "ctrs": {
    "next": true,
    "prev": true
  },
  "sugestions": [
    {
      "image": "https://monoschinos2.com/thumbs/portada/gundamhathawayvisual-e1621256405818.jpg?v=1.1",
      "date": "08 Jul 2021",
      "title": "Mobile Suit Gundam: Hathaway's Flash",
      "no": "Capitulo 1"
    },
    ...
  ],
  "videos": [
    {
      "title": "cloud",
      "url": "https://monoschinos2.com/reproductor?url=https://repro.monoschinos2.com/aqua/cl?url=redo02.mp4"
    },
    ...
  ],
  "downloads": [
    {
      "title": "1fichier ",
      "url": "https://1fichier.com/?yssqgolputegizq4xkhb"
    },
    ...
  ]
}

I have downloaded and tested the project locally, but there are some data, for example, that are not shown in the query above. The request I have tried to make is as follows:

http://localhost:5000/ver/cue-episodio-1

Here is the url that directly accesses the MonosChinos website, which is where this query is obtained, and as you can see there are several servers that the API is not returning.

https://monoschinos2.com/ver/cue-episodio-1

And the answer is not quite as expected as shown in the documentation, because if you access MonosChinos, the links to the servers come up, but the API does not show them.

{
  "title": "Cue!. 1 ",
  "nextEpisodes": null,
  "ctrs": {},
  "sugestions": [
    {
      "image": "https://monoschinos2.com/thumbs/portada/kyoukai-no-kanata.png?v=1.1",
      "date": "19 Jul 2019",
      "title": "Kyoukai no Kanata",
      "no": "Capitulo 1"
    },
    {
      "image": "https://monoschinos2.com/thumbs/portada/honzuki-no-gekokujou-shisho-ni-naru-tame-ni-wa-shudan-wo-erandeiraremasen-ova.jpg?v=1.1",
      "date": "09 Mar 2020",
      "title": "Honzuki no Gekokujou: Shisho ni Naru Tam...",
      "no": "Capitulo 1"
    },
    {
      "image": "https://monoschinos2.com/thumbs/portada/kimi-ga-nozomu-eien-ayu-mayu-gekijou.jpg?v=1.1",
      "date": "17 Jul 2019",
      "title": "Kimi ga Nozomu Eien: Ayu Mayu Gekijou",
      "no": "Capitulo 1"
    },
    {
      "image": "https://monoschinos2.com/thumbs/portada/high-school-dxd-hero.jpg?v=1.1",
      "date": "13 Jul 2018",
      "title": "High School DxD Hero",
      "no": "Capitulo 1"
    },
    {
      "image": "https://monoschinos2.com/thumbs/portada/psycho-pass-3.jpg?v=1.1",
      "date": "24 Oct 2019",
      "title": "Psycho-Pass 3",
      "no": "Capitulo 1"
    },
    {
      "image": "https://monoschinos2.com/thumbs/portada/ozma.jpg?v=1.1",
      "date": "16 Jul 2019",
      "title": "Ozma",
      "no": "Capitulo 1"
    },
    {
      "image": "https://monoschinos2.com/thumbs/portada/boku-no-imouto-wa-osaka-okan-1637897256.jpg?v=1.1",
      "date": "10 May 2019",
      "title": "Boku no Imouto wa Osaka okan",
      "no": "Capitulo 1"
    }
  ],
  "videos": [],
  "downloads": [
    {
      "title": "1fichier ",
      "url": "https://1fichier.com/?37d7dl2ku6spkdy0uajr"
    },
    {
      "title": "Mega ",
      "url": "https://mega.nz/#!YwVFmSZB!7tuOzJP3SFsuZaj9FGEmWD_gdVuN_sUD8HjTVIWUdGY"
    }
  ]
}
carlos-burelo commented 2 years ago

Apparently it is due to a restructuring in the content of the page, they moved some elements of place and changed the identifiers and therefore the API is not being able to find them, later I will do some tests and patch that error. Thanks for the information :)

jeluchu commented 2 years ago

Thank you very much @carlos-burelo , I'll keep an eye out for updates 👀

carlos-burelo commented 2 years ago

Bug fixed friend, thanks for your contribution :)

jeluchu commented 2 years ago

@carlos-burelo The problem is reoccurring in some series, for example I have found this to be the case with this particular series

http://localhost:5000/ver/aoi-sekai-no-chuushin-de-episodio-2