1.0.3 • Published 1 year ago

twitter-get-posts v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

twitter-get-posts

Allows to obtain the tweets of an twitter profile

Pre requirements

You must have python 3 previously installed, once you have python, you must install the snscrape

  pip install snscrape

Installation

Install twitter-get-posts with npm

  npm install twitter-get-posts

Usage/Examples

Get a random post from a profile

const TWITTER = require('twitter-get-posts');
const fs = require('fs');

TWITTER.getTweets('vegetabdn', 10)
.then(tweets => {
  fs.writeFileSync('./example/tweets.json', JSON.stringify(tweets, null, 2));
})
.catch(err => console.error(err));
1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago