shindan
v2.0.3
Published
shindanmaker web scraper
Maintainers
Readme
shindan
shindanmaker web scraper
shindan is a web scraper for ShindanMaker, a joke fortune telling website.
const shindan = require('shindan')
shindan
.diagnose(587327, 'Pudding')
.then(console.log) // Yes, Pudding is 795% cute.Authors on ShindanMaker create short, often comical diagnoses based on message fragments that are shuffled together, and then visitors enter their names and read these random diagnoses with their names inserted in. I couldn't find an official API to do this on ShindanMaker's site, so I decided to just scrape their website for data.
Diagnoses
promise = shindan.diagnose(shindanID, name[, callback])Sends a request to ShindanMaker for the provided shindanID with your name.
shindanIDnumber. You can find this in your shindan's uri. Must be an integer.namestring. Who is the diagnosis for? Can't be an empty string, but can be anything else ShindanMaker supports.promise/callbackYou can use either or both.errorError. You can get request errors and parsing errorsresultobject. Diagnosis result. Currently only has one property but will eventually have more.resultstring. Your result.
Generally, providing the same pair of arguments will give you the same results for a day. Try it yourself for more details.
Shindan listing
promise = shindan.list([options], [callback])Scrapes ShindanMaker's list page, passing options as a query string.
optionsYou can either provide an object or a string here. If you leave this blank, you'll get the newest listing.- string. Provide a string instead of an object and it'll be treated as the
modeparameter. - object. Query string parameters. Some useful ones:
modeYour list mode. You can find them by browsing ShindanMaker, but the most useful one is probablyhotfor HOT items.pList page.
- string. Provide a string instead of an object and it'll be treated as the
promise/callbackYou can use either or both.errorError. You can get request errors.resultsarray. An array of objects representing the items found in the listordernumber. The current list indexidnumber. Shindan IDtitlestring. Shindan name / titleauthorstring. Whoever wrote the shindandescriptionstring. Shindan descriptiontagsarray. An array of strings representing the tags given to this shindanfavoritesnumber. Number of favoritesdiagnosesnumber. Number of diagnoses given. Sometimes inaccurate.

