lubien / popura Goto Github PK
View Code? Open in Web Editor NEW[MAL API is down ๐] NodeJS wrapper for MyAnimeList API
Home Page: https://www.npmjs.com/package/popura
License: MIT License
[MAL API is down ๐] NodeJS wrapper for MyAnimeList API
Home Page: https://www.npmjs.com/package/popura
License: MIT License
to be able 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
I melted my brain on this and i still can't understand how to use it. Can anyone help?
Is it possible to extract a list of episodes the user watched and when?
I just tried
const popura = require('popura');
popura.getAnimeList('__g')...
but apparently popura.getAnimeList
isn't a function
E.g. given a username can i get that user's location?
Sometimes API returns HTML, sometimes a number. Sometimes the build breaks for god only knows why.
I think katanashi-kun would be glad.
Currently MAL's API is broken.
When (and if) it updates, I'll need to do some serious rework here.
Related: ryukinix/mal#100
Everything is working just fine here. Pretty sure it's something about Travis and dotenv.
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)
After having lots of issues with MAL's HTML, I've decided to not continue the scrapper.
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' }
Seems like my authorization sometimes fail within Travis.
I get 403 Forbidden responses since apparently the API no longer accepts requests via regular HTTP (according to MAL API Comments).
See 39db85e
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.