node-wordpress-json-scraper
v1.0.1
Published
Word press scraper plugin
Downloads
5
Readme
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"}'
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| url
| string
| Required. Url of the wordpress site that need to be scraped |
| options
| string
| Required. fromdate todate |
Get All Posts
wpscrap getposts --url='example.com' --options='{"all":true}'
| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |
| url
| string
| Required. Url of the wordpress site that need to be scraped |
| options
| string
| Required. '{"all":true}' |
Get Latest n Posts
wpscrap getposts --url='example.com' --options='{"latest":31}'
| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |
| url
| string
| Required. Url of the wordpress site that need to be scraped |
| options
| string
| Required. '{"latest":31}' this will fetech latest 31 posts in the WP site|
Get tags from the site
wpscrap gettags --url='example.com'
| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |
| url
| string
| Required. Url of the wordpress site that need to be scraped |
Get Categories from the site
wpscrap getcategories --url='example.com'
| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |
| url
| string
| Required. 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 [email protected] 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