https://github.com/lipp/likes
Easily query social media likes/followers without tokens (for node)
https://github.com/lipp/likes
Last synced: 9 months ago
JSON representation
Easily query social media likes/followers without tokens (for node)
- Host: GitHub
- URL: https://github.com/lipp/likes
- Owner: lipp
- License: mit
- Created: 2016-08-26T09:52:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-12T23:44:08.000Z (almost 7 years ago)
- Last Synced: 2025-03-29T07:33:37.499Z (10 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 16
- Watchers: 1
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# likes
Easily query social media likes/followers without tokens (for node).
__NO TOKENS REQUIRED__
[](https://doclets.io/lipp/likes/master) [](https://travis-ci.org/lipp/likes) [](https://coveralls.io/github/lipp/likes?branch=master)
Available for:
- Facebook
- Twitter
- Instagram
- Youtube
# Installation
$ npm install likes
# Example
```js
var likes = require('likes')
likes.twitter('BarackObama', function (err, count) {
if (err) {
console.error(err)
process.exit(1)
}
console.log('Barack has', count, 'followers on Twitter')
})
```
# API
[](https://doclets.io/lipp/likes/master)
# How it works
The module uses simple HTTP GET to query the respective counts. So far NO headless browser like phantomjs is employed.
As the respective page layout may change, this approach is pretty fragile.
Keep in mind that the respective platform may rate-limit / blacklist you in case of "excessive" usage.
Contribution is very welcomed!