New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

medusa-wp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

medusa-wp

Make a JSON dump of a WordPress site

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

medusa :snake::statue_of_liberty:

Installation

npm install -g medusa

or

yarn global medusa

to install.

Use

Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -n                     Use a non-WP REST API base
    -f                     Force complete rebuild
    -t, --types [types]    Types to be scraped.
    -p, --params [params]  URL params.
    -o, --output <output>  Output location (should be name of a json file)

You must also specify a base URL to use. A sample call might look like:

medusa http://sample.dev -t posts -p order=asc -p orderby=title -o dump.json

This will output a JSON dump of the data named dump.json in your current working directory.

On the radar/caveats

  • This is very much intended to be used with structure of the WordPress REST API, but can probably be repurposed for other APIs that use a ?page= param for pagination. You'll likely need to update some things anyway.
  • Right now, types all have to be specified manually

FAQs

Package last updated on 17 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc