picky-scrape

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i picky-scrape

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

21.4 kB

Total Files

6

Last publish

Collaborators

  • bbsmithy