Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Scraper API

Description

Built on Node with Typescript using Puppeteer and Cheerio to scrape live data from websites

Instructions

  1. Clone this repository
  2. Using a Bash terminal, navigate to the project root
  3. Use npm i to perform installation of packages
  4. Use npm run start:dev to run the server
  5. Example request
  • Example Request:
    {
      "url": "https://www.coindesk.com/price/bitcoin",
      "selectors": [
          "#__next > main > section > div.price-page > div.coin-detail-module > div > section > div > div > section.coin-info > div > dl:nth-child(1) > dd"
      ]
    }
    
  • Example Response:
      {
      "date": "2020-07-04T13:07:40.179Z",
      "success": true,
      "status": 200,
      "results": [
      "$9,074.94"
      ],
      "selectors": [
      "#__next > main > section > div.price-page > div.coin-detail-module > div > section > div > div > section.coin-info > div > dl:nth-child(1) > dd"
      ],
      "url": "https://www.coindesk.com/price/bitcoin"
      }
    

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages