Kylart / MalScraper

Scrape everything you can from MyAnimeList.net
MIT License
177 stars 49 forks source link

Can't check credentials #31

Closed LightYagami200 closed 4 years ago

LightYagami200 commented 4 years ago

What I'm trying to do: I'm trying to check credentials of user trying to login

Error <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /api/account/verify_credentials.xml was not found on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>

Source Code `const api = new malScraper.officialApi({ username: username, password: password, });

  try {
    const res = await api.checkCredentials();
    console.log(res);
  } catch (e) {
    console.log(e);
  }`
Kylart commented 4 years ago

Hey,

This feature uses the official MAL API which is down for years now. That's why it won't work.

However, depending on your usecase. You can implement the authentication system described here.