1.0.1 • Published 3 years ago

node-wordpress-json-scraper v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

node-wordpress-scraper

This package can scrap the wordpress posts/categories/tags from specified wordpress url and save in the folder named the url of the sie that user provided.

Installation

Install node-wordpress-scraper with npm

  npm install -g node-wordpress-scraper

Features

  • Scrap all the posts from WP site
  • Scrap the posts between specific date
  • Scrap the latest n posts from WP site
  • Scrap all the categories from WP site
  • Scrap all the tags from WP site

Usage Reference

Get Posts between dates

  wpscrap getposts --url='example.com' --options='{"fromDate":"2021-01-28", "toDate":"2021-03-08"}'
ParameterTypeDescription
urlstringRequired. Url of the wordpress site that need to be scraped
optionsstringRequired. fromdate todate

Get All Posts

  wpscrap getposts --url='example.com' --options='{"all":true}'
ParameterTypeDescription
urlstringRequired. Url of the wordpress site that need to be scraped
optionsstringRequired. '{"all":true}'

Get Latest n Posts

  wpscrap getposts --url='example.com' --options='{"latest":31}'
ParameterTypeDescription
urlstringRequired. Url of the wordpress site that need to be scraped
optionsstringRequired. '{"latest":31}' this will fetech latest 31 posts in the WP site

Get tags from the site

  wpscrap gettags --url='example.com' 
ParameterTypeDescription
urlstringRequired. Url of the wordpress site that need to be scraped

Get Categories from the site

  wpscrap getcategories --url='example.com' 
ParameterTypeDescription
urlstringRequired. Url of the wordpress site that need to be scraped

Usage/Examples

wpscrap getposts --url='example.com' --options='{"fromDate":"2021-01-28", "toDate":"2021-03-08"}'

wpscrap getposts --url='example.com' --options='{"fromDate":"2021-01-28", "toDate":"2021-03-08"}'

wpscrap getposts --url='example.com' --options='{"fromDate":"2021-01-28", "toDate":"2021-03-08"}'

Support

For support, email rahulcv@hotmail.co.in or raise a ticket.

FAQ

Can i use this package to scrap posts from non wordpress sites

No. this pacakge is currently supports only WP sites

Can i scrap blogspot sites

No. this pacakge is currently supports only WP sites

Authors

License

MIT