VOOZH about

URL: https://apify.com/eshaam/african-news-aggregator

โ‡ฑ African News Aggregator ยท Apify


Pricing

Pay per usage

Go to Apify Store

African News Aggregator

This Apify Actor is a specialized web crawler designed to aggregate the latest news articles from the most influential news outlets across the African continent. It uses lightweight Cheerio scraping to ensure high speed and low cost.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

๐Ÿ‘ Eshaam Rabaney

Eshaam Rabaney

Maintained by Community

Actor stats

0

Bookmarked

6

Total users

0

Monthly active users

7 months ago

Last modified

Categories

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

Stocks Plus News Scraper

mscraper/stocks-plus-news-scraper

Stock+ News Scraper is a specialized web scraping tool designed to extract news data from the Stock+. The scraper exports the collected news data to various formats like JSON, XML, CSV, or Excel.

Ultimate News API

glitch_404/Ultimate-News-Scraper

Scrape up to 10000 news articles from over 4500 news sources in less than 20 minutes, news from over 20 categories, e.g., Crypto news, World News, Latest News, Celebrities, and a lot more. You can find news on websites such as Fox News, BBC News, CNN, and Cryptocurrency-Related News Sources.

257

1.0

Investors Business Daily News Scraper

mscraper/investors-business-daily-news-scraper

Investors Business Daily News Scraper is a specialized web scraping tool designed to extract news from the IBD platform. The scraper exports the accumulated data to various formats like JSON, XML, CSV, or Excel.

Macys News Articles

pintostudio/macys-news-articles

The Macy's News Articles Actor is a powerful Apify web scraping tool designed to extract press releases and news articles from Macy's official newsroom.

Google News

canadesk/google-news

Find the latest news with direct source links from Google News. It's fast and costs little!

๐Ÿ‘ User avatar

Canadesk Support

20

Google Latest News Scraper

mansurmqlfelvin/google-latest-news-scraper

Google Latest News Scraper

โœ… CHEAP GOOGLE NEWS SCRAPPER โœ…

shoya/cheap-google-news-scrapper

Extract news articles from Google News with unlimited keywords, custom location, language, and time period filters. Supports advanced search operators, topic-based scraping, and automatic deduplication. One of the most affordable Google News scrapers on Apify optimized for speed and cost efficiency.

Stock Tracker News Scraper

mscraper/stock-tracker-news-scraper

Stock Tracker News Scraper is a specialized web scraping tool designed to extract news from Stock Tracker. The scraper exports the accumulated data to various formats like JSON, XML, CSV, or Excel.