Skip to content

Repository files navigation

📜
use-scraper

DocumentationMinified sizeVersionLicenseDemo


React hook that allows you to scrape a website

Documentation, demos & use cases
Table of Contents

Features

  • Zero dependencies
  • Configurable

Installation

npm i use-scraper

How to use

⚠️ To use this component it is necessary to define a CORS-enabled proxy. For example you can use CORS-Anywhere.

importuseScraperfrom"use-scraper"constMyComponent=()=>{const{ isLoading, data, error }=useScraper({url: 'https://github.com/Alejandroid17',proxyURL: '<proxy-url>'});return(// This is an example, here you define your component.<div>{isLoading&&<div>Loading...</div>}{error&&<div>{error}</div>}{data&&<div>{data}</div>}</div>);exportdefaultMyComponent;

About

React hook that allows you to scrape a website.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Packages

Used by

Contributors

Languages