tweet-fetcher
v2.0.0
Published
get your tweets from twitter without a api key
Downloads
11
Readme
tweet-fetcher
Get your Tweets from Twitter, in Node and Browser (with Browserify), without using the Twitter 1.1 API. Based on, the awesome work of Jason Mayes "twitter-post-fetcher" Module https://github.com/jasonmayes/Twitter-Post-Fetcher
Why this Module
I simply needed a module with Promise Support for Nodejs and the Browser.
How to use ?
- Create a Widget: https://twitter.com/settings/widgets
- Copy the Widget-ID
- Add this to your Code:
(function () {
"use strict";
// require the module
const tweetFetcher = require('tweet-fetcher');
// configure
const config = {
"id" : "720905681944080384", // the widget id
"language": "en" // the widget language
};
// fetch the data
tweetFetcher(config)
.then(function(tweets) {
console.log('do something with the ', tweets);
})
.catch(function(err) {
console.log(err);
});
})();