twitter-get-posts

1.0.3 • Public • Published

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));

Readme

Keywords

none

Package Sidebar

Install

npm i twitter-get-posts

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

8.23 kB

Total Files

5

Last publish

Collaborators

  • lcruga