GithubHelp home page GithubHelp logo

higorpo / google-news-scraper-api Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 58 KB

A Google News API

Home Page: https://google-news-scraper-api.herokuapp.com/news

TypeScript 100.00%
google google-news api puppeteer scraper scraping crawler express typescript javascript

google-news-scraper-api's Introduction

Google News Scraper API

This repository contains the source code of an API that scraps the Google News page. It was created in Typescript (Node.js) using the Puppeteer library together with Express.

You can use the API endpoint using:

curl -X GET https://google-news-scraper-api.herokuapp.com/news?lang=<lang-code>

Like

curl -X GET https://google-news-scraper-api.herokuapp.com/news?lang=en-US

You can also include the parameter q to search for certain news items, for example:

curl -X GET https://google-news-scraper-api.herokuapp.com/news?lang=en-US&q=covid19

The API will return a JSON with an array of objects containing the following structure:

{
    "news_title": string,
    "news_url": string,
    "newspaper_name": string,
    "datetime": string | null,
}

Important: The API caches the information and keeps it for 20 minutes until the next refresh of the data.

--

Created for study purposes.

google-news-scraper-api's People

Contributors

higorpo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

renatojuniorrs

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.