VOOZH about

URL: https://apify.com/hung_pham_manh/google-news-scraper-fast-and-cheap

⇱ Google News Scraper ( Fast And Cheap ) Β· Apify


πŸ‘ Google News Scraper ( Fast And Cheap ) avatar

Google News Scraper ( Fast And Cheap )

Pricing

from $8.00 / 1,000 results

Go to Apify Store

Google News Scraper ( Fast And Cheap )

Gets featured articles from Google News with title, link, source, publication date and image.

Pricing

from $8.00 / 1,000 results

Rating

0.0

(0)

Developer

πŸ‘ h

h

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Share

JavaScript Crawlee & CheerioCrawler Actor Template

This template example was built with Crawlee to scrape data from a website using Cheerio wrapped into CheerioCrawler.

Quick Start

Once you've installed the dependencies, start the Actor:

$apify run

Once your Actor is ready, you can push it to the Apify Console:

apify login # first, you need to log in if you haven't already done so
apify push

Project Structure

.actor/
β”œβ”€β”€ actor.json # Actor config: name, version, env vars, runtime settings
β”œβ”€β”€ dataset_schema.json # Structure and representation of data produced by an Actor
β”œβ”€β”€ input_schema.json # Input validation & Console form definition
└── output_schema.json # Specifies where an Actor stores its output
src/
└── main.js # Actor entry point and orchestrator
storage/ # Local storage (mirrors Cloud during development)
β”œβ”€β”€ datasets/ # Output items (JSON objects)
β”œβ”€β”€ key_value_stores/ # Files, config, INPUT
└── request_queues/ # Pending crawl requests
Dockerfile # Container image definition

For more information, see the Actor definition documentation.

How it works

This code is a JavaScript script that uses Cheerio to scrape data from a website. It then stores the website titles in a dataset.

  • The crawler starts with URLs provided from the input startUrls field defined by the input schema. Number of scraped pages is limited by maxPagesPerCrawl field from the input schema.
  • The crawler uses requestHandler for each URL to extract the data from the page with the Cheerio library and to save the title and URL of each page to the dataset. It also logs out each result that is being saved.

What's included

  • Apify SDK - toolkit for building Actors
  • Crawlee - web scraping and browser automation library
  • Input schema - define and easily validate a schema for your Actor's input
  • Dataset - store structured data where each object stored has the same attributes
  • Cheerio - a fast, flexible & elegant library for parsing and manipulating HTML and XML
  • Proxy configuration - rotate IP addresses to prevent blocking

Resources

Creating Actors with templates

Getting started

For complete information see this article. In short, you will:

  1. Build the Actor
  2. Run the Actor

Pull the Actor for local development

If you would like to develop locally, you can pull the existing Actor from Apify console using Apify CLI:

  1. Install apify-cli

    Using Homebrew

    $brew install apify-cli

    Using NPM

    $npm-ginstall apify-cli
  2. Pull the Actor by its unique <ActorId>, which is one of the following:

    • unique name of the Actor to pull (e.g. "apify/hello-world")
    • or ID of the Actor to pull (e.g. "E2jjCZBezvAZnX8Rb")

    You can find both by clicking on the Actor title at the top of the page, which will open a modal containing both Actor unique name and Actor ID.

    This command will copy the Actor into the current directory on your local machine.

    $apify pull <ActorId>

Documentation reference

To learn more about Apify and Actors, take a look at the following resources:

You might also like

Google News Scraper

lhotanova/google-news-scraper

Gets featured articles from Google News with title, link, source, publication date and image.

πŸ‘ User avatar

KristΓ½na LhoΕ₯anovΓ‘

3.1K

4.6

Google News Scraper

saswave/google-news-scraper

Google News data retrieval scraper. Get latest news. Extract date with title, link, source, publication date, image, authors. Improve your news aggregation, market research, and sentiment analysis efforts

Google News Scraper β€” Articles & Sources

khadinakbar/google-news-scraper

Extract Google News articles by keyword, topic, or region. Returns title, source, snippet, link, published date, and image. No login or API key. MCP-ready.

19

Google News Scraper - Cheap

bot_kevin/Google-News-Scraper

Easily scrape news from Google News page in .json format.

Google News Scraper

gio21/google-news-scraper

Scrapes Google News RSS for articles by keyword (title, link, source, pubDate, description). Pay per article.

Google News Scraper – Enriched, Fast & Cheap

epicscrapers/google-news-scraper

Extract title, URL, source, publish date, and thumbnail image etc. Perfect for news monitoring, research, and media tracking workflows.

32

5.0

Google News Scraper

rupom888/google-news-scraper

Scrape Google News articles by keyword, topic (Technology, Business, Sports, etc.), or site. No API key needed. Returns title, URL, source, date, description, and image.