GithubHelp home page GithubHelp logo

carlos-burelo / monoschinos-api Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 4.0 252 KB

REST API written in Typescript and Node JS under the concept of Web Scraping, to extract data from the Monoschinos2.com page

Home Page: https://carlosburelo.vercel.app/monoschinos-api

TypeScript 100.00%
anime axios rest rest-api restful-api scraping typescript

monoschinos-api's Introduction

Welcome to My GitHub Profile! 馃憢

GitHub Streak

About Me

I'm Carlos Burelo, a professional web developer with a passion for open-source projects. My expertise lies in crafting robust and scalable web applications using cutting-edge technologies. TypeScript is my preferred language for its strong typing and enhanced tooling, enabling me to deliver high-quality code.

I actively contribute to the open-source community, collaborating with developers worldwide to create impactful solutions. I firmly believe in the power of collaboration and its ability to drive innovation in the software development ecosystem.

Skills

Here are some of the languages and skills I specialize in:

TypeScript JavaScript HTML5 CSS3 React Node.js Express.js SQL NoSQL Git GitHub

Feel free to explore my repositories to gain more insights into my work and projects!

Let's Connect!

If you're interested in collaborating on exciting projects or have any questions, feel free to reach out to me. You can find me on the following platforms:

Looking forward to connecting with you and making a positive impact together! 馃殌

monoschinos-api's People

Contributors

carlos-burelo avatar darkangeel-hd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

monoschinos-api's Issues

Problems loading series information and episode lists (PATH: /anime/:id)

Request and Response according to documentation

PATH: /anime/:id

Querys Params
none id
{
  "banner": "https://monoschinos2.com/assets/img/serie/portada/Wano_Country_Arc.png",
  "image": "https://monoschinos2.com/thumbs/imagen/juanitowano.jpg?v=1",
  "title": "One Piece",
  "sinopsis": "Una historia 茅pica de piratas, donde narra la historia de \"Monkey D. Luffy\" quien cuando tenia 7 a帽os, comi贸 accidentalmente una \"Akuma no mi\"(Fruta del diablo) la cual le convirti贸 en un hombre de goma. Por otra parte \"Gol D. Roger\" conocido com... Ver m谩s",
  "status": "Estreno",
  "date": 1999,
  "rating": "4.7",
  "genders": [
    "Acci贸n",
    "Aventura",
    "Comedia",
    "Drama",
    "Fantas铆a",
    "Shonen"
  ],
  "episodes": [
    {
      "image": "https://monoschinos2.com/public/img/default.gif",
      "no": 1,
      "id": "one-piece-episodio-1"
    },
    {
      "image": "https://monoschinos2.com/public/img/default.gif",
      "no": 2,
      "id": "one-piece-episodio-2"
    }
    { ... }
  ]
}

I have been seeing that in many series the information is not loading correctly, and along with that the episode list is not loading correctly either, here I show you the 2 errors that I have found when making queries to some animes

Error 1

http://localhost:5000/anime/blade-runner-black-lotus-sub-espanol
https://monoschinos2.com/anime/blade-runner-black-lotus-sub-espanol

{
  "id": "intertal-server-error",
  "message": "Cannot read properties of null (reading '0')"
}

Error 2

http://localhost:5000/anime/shigatsu-wa-kimi-no-uso-sub-espanol
https://monoschinos2.com/anime/shigatsu-wa-kimi-no-uso-sub-espanol

{
  "id": "intertal-server-error",
  "message": "Cannot read property '0' of null"
}

Redis Cache implementation

I see you're using express-expeditious for local content caching.
Nice thing
But could we add an option for a redis server cache?
By using redis we do not only persist data across app restarts, but we are also able to share it between app instances, while also centralizing its management.

Example here:
https://www.npmjs.com/package/express-expeditious#using-redis

I will try to take a look at this myself when I have time available.
But I saw you made a lot of changes to the code in a short time (which is a good thing, keep it up 馃憤 ) so you'll be more familiar with how it works rn than me.

Cache engine could be selected by using and env variable or a .env file
Options could be memory, redis or none.
When selecting redis, some server info would need to be provided.

As always, thanks for your hard work and have a nice day.

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

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"
    }
  ]
}

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.