Memescraper
Scrape meme information from urls.
Installation
npm install --save memescraper
Usage
const memescraper = // Lookup info memescraper // Parse URL const info = memescraper console // livememeconsole // 3t1je69
CLI
$ memescraper "http://www.livememe.com/3t1je69"{ "memeId": "most-interesting-man", "captions": [ "I DON’T ALWAYS DRINK BEER", "BUT WHEN I DO, I PREFER DOS EQUIS" ]}
API
memescraper.parse(url)
-> { provider, id }
Parse a url into the corresponding provider and id.
memescraper.lookup(url, cb)
-> cb(err, { memeId, captions })
Lookup the type of meme and captions for the given url.
memescraper.lookup(info, cb)
-> cb(err, { memeId, captions })
Lookup the type of meme and captions for the given provider and id. info
should be in the same format as returned by .parse(url)
.