Google News | Crawler

daxsoft

Michael Willian Santos

Posted on October 31, 2020

Google News | Crawler
// start

Hi everyone!
GitHub of the Project


While I was coding a paid-project from my freelancer career. There was the need to get news from certain topics. I have searched and discovered that there are few solutions for this particular problem. So, this is the reason that I have created this package.


// How To Use

It's pretty simple to use, in which you need to only define the class and call for the method run (async/await)

Example taken from the folder 'example/basic' at the github page.

const { GoogleNews } = require('@vorlefan/google-news')

const news = new GoogleNews(['One Piece', 'Kingkiller Chronicles'], {
    routeName: 'download',
    language: 'en-US',
    localization: 'US',
    route: (route) => {
        route.set('src', __dirname)
        route.inject('download', 'src')
        console.log(route.get('root').filepath)
    },
})

void (async function () {
    await news.run()
})()
Enter fullscreen mode Exit fullscreen mode

// Use Case

If you are creating a web-app, SaaS or whatever that needs to crawler the most recent news from certain topic, this is for you :)


// End

There a lot of feature that I'm planning for this module, then if you want to, please contribute or follow up the news xD

💖 💪 🙅 🚩
daxsoft
Michael Willian Santos

Posted on October 31, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Google News | Crawler
node Google News | Crawler

October 31, 2020