Skip to content

bbsmithy/picky-scrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Picky Scrape

Node.js CLI program for picky part of a site, extracting plain html and writing it to file. This is handy for copying plain content from one site to another with out having extract the data manaully and rewrite html.

Installation

$ npm install -g picky-scrape

Usage

$ picky-scrape [URL] [SELECTOR] [ELEMENT_INDEX] [OUTPUT_FILE] (Optional)

Example: On the page https://www.irishtimes.com/ find the first element with class=".trendingarticles" and print its contents to console

$ picky-scrape https://www.irishtimes.com/ .trendingarticles 0

Add the last argument option to write result to file

$ picky-scrape https://www.irishtimes.com/ .trendingarticles 0 trending-articles.html

About

Node.js CLI program for scraping sites.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published