Giter Site home page Giter Site logo

lubien / popura Goto Github PK

View Code? Open in Web Editor NEW
28.0 5.0 4.0 106 KB

[MAL API is down ๐Ÿ˜‰] NodeJS wrapper for MyAnimeList API

Home Page: https://www.npmjs.com/package/popura

License: MIT License

JavaScript 100.00%
myanimelist-api nodejs-wrapper

popura's Introduction

lubien's github stats

๐Ÿ”— Contacts:

Twitter Telegram

popura's People

Contributors

bote795 avatar lubien avatar maddin77 avatar vija02 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

popura's Issues

Body did not match test function for add anime function

to be able to fix

  • \utils\index
    • make sure line :82 change "201 created" to just "created" to fix
var checkAddResponse = exports.checkAddResponse = function checkAddResponse(body) {
  console.log(body);
  return body && (Number(body) > 0 || body.includes('201 Created'));
};
var checkAddResponse = exports.checkAddResponse = function checkAddResponse(body) {
  console.log(body);
  return body && (Number(body) > 0 || body.includes('Created'));
};

This must be fixed after the https is merged in

Any tutorials?

I melted my brain on this and i still can't understand how to use it. Can anyone help?

Better MAL API posts

Sometimes API returns HTML, sometimes a number. Sometimes the build breaks for god only knows why.

TypeError: str.split is not a function

I get this error and i don't know how to fix it.

TypeError: str.split is not a function
at splitBy (C:\Users\privat\Documents\GIT\MangaRD\node_modules\popura\lib\utils\index.js:103:20)
at convertFieldTypes (C:\Users\privat\Documents\GIT\MangaRD\node_modules\popura\lib\utils\convert-field-types.js:55:35)
at cleanApiData (C:\Users\privat\Documents\GIT\MangaRD\node_modules\popura\lib\utils\clean-api-data.js:33:39)
at process._tickCallback (internal/process/next_tick.js:109:7)

Can I do searches without being logged in?

Hi, I'm trying to do searches but do I really need to be logged to do so?

Code:

const __popura = require( 'popura' );
const popura = __popura(  );

popura.searchAnimes( 'naruto')
      .then( anime =>  console.log( anime ) )
      .catch( issue => console.log( issue ) )

Terminal:

{ HTTPError
    at stream.catch.then.data (/home/farm/node_modules/got/index.js:123:13)
    at process._tickCallback (internal/process/next_tick.js:109:7)
  message: 'Response code 401 (Unauthorized)',
  host: 'myanimelist.net',
  hostname: 'myanimelist.net',
  method: 'GET',
  path: '/api/anime/search.xml?q=naruto',
  statusCode: 401,
  statusMessage: 'Unauthorized' }

Fix build

Seems like my authorization sometimes fail within Travis.

Scrapper Planning

  • Anime Page
    • Title
    • Synopsis
    • Image
    • Alternative Titles
    • Information
    • Statistics
    • Related Anime
    • Characters
    • Staff
    • Reviews
    • Recommendations
    • Recent News
    • Recent Featured Articles
    • Fansubbing Groups
  • Manga Page
  • People Pages
  • Top Anime/Manga
  • Season (includes schedule)
  • Videos
  • Reviews
  • Recommendations
  • Better Search

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.