Youtube_scraper avatar
Youtube_scraper

Deprecated

Pricing

$5.00 / 1,000 results

Go to Store
Youtube_scraper

Youtube_scraper

Deprecated

Developed by

Ravi Gajera

Ravi Gajera

Maintained by Community

It scrapes Youtube videos

0.0 (0)

Pricing

$5.00 / 1,000 results

0

Total users

3

Monthly users

3

Runs succeeded

0%

Last modified

a month ago

JavaScript Crawlee & CheerioCrawler template

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

Included features

  • 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

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.

Resources