Allows to obtain the tweets of an twitter profile
You must have python 3 previously installed, once you have python, you must install the snscrape
pip install snscrape
Install twitter-get-posts with npm
npm install twitter-get-posts
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));