huned / nodejs-recent-tweets Goto Github PK
View Code? Open in Web Editor NEWA function and command line utility to get recent tweets for a specific user.
A function and command line utility to get recent tweets for a specific user.
Hi!
Great package, I'm using it for my discord bot.
I would like to know if it would be possible to add some little things like the URL
(node:5668) UnhandledPromiseRejectionWarning: TypeError: tweets is not iterable
at getRecentTweets (C:\Users\ExpErgio\Desktop\Alejandreta\node_modules\recent-tweets\lib\recent_tweets.js:39:23)
at async Statement.<anonymous> (C:\Users\ExpErgio\Desktop\Alejandreta\eventos\ready.js:609:23)
(node:5668) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 762)
My code is:
const URLs = [
"Excelsior_DS",
"StripMarvel",
"Marvel",
"DCComics",
"disneyplus"
]
for(var i=0 ; i<URLs.length ; i++){
let directo = await getRecentTweets(URLs[i])
console.log(directo)
}
The error only appears when you want to extract the information from the 4th twitter account. No matter what account you put, it always happens in the same.
I have used npm frequently for 2 days, and I have seen that every time it scrapes the twitter user, it gets a lot of tweets from that user.
Is there a possibility to reduce the number of tweets to only 5 or 6?
I tried to fetch information from NintendoEurope acconut but it always returns to me 0 tweets. Maybe it is broken?
Would be great if we could get a parameter to make puppeteer headless = false and see what is actually happening
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.