Giter Site home page Giter Site logo

nodejs-recent-tweets's People

Contributors

dependabot[bot] avatar huned avatar

Watchers

 avatar

nodejs-recent-tweets's Issues

Additions to be made

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

Tweets is not iterable: Error

(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.

Reduce the number of tweets it scrape

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?

Cannot fetch on specific accounts

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.