Neutron
hey I found out the work around. It looks twitter no longer allows you to view content unless you're signed in. so you have to log in with the Rettiwt-Api once, save the tokens it returns (in your ENV VARS perhaps) and then use those to initiate the client like this. Be careful with this thought because if you dont do it correctly you could get your account suspended. Its probably best to use an alternate twitter account for this:
const getTokens = async () => {
const tokens = await Rettiwt().account.login(
process.env.TWITTER_EMAIL!,
process.env.TWITTER_HANDLE!,
process.env.TWITTER_PASSWORD!
);
console.log('tokens: ', tokens)
};
const twitter = Rettiwt(tokens);
const favUserTweets = await twitter.tweets.getTweets({
fromUsers: [favUser],
endDate: endDate,
});
i'll post an update to the article and repos ASAP