Skip to content

Commit

Permalink
Added documentation to the README file
Browse files Browse the repository at this point in the history
  • Loading branch information
MickaelWalter committed Apr 15, 2018
1 parent 1a3b0e7 commit 6072b41
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 4 deletions.
50 changes: 46 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@

## Introduction

WPJsonScraper is a tool for dumping a maximum of the content available on a WordPress installation. It uses the wp-json API to retrieve all important information and enumerate every user, post, comment, media and more.
![WPJsonScraper capture](doc/WPJsonScraperCapture.png)

This allows to get information about sensitive files or pages which may be not protected enough from external access.
WPJsonScraper is a tool for dumping a maximum of the content available on a
WordPress installation. It uses the wp-json API to retrieve all important
information and enumerate every user, post, comment, media and more.

This allows to get information about sensitive files or pages which may be not
protected enough from external access.

## Prerequises

WPJsonScraper is written in Python and should work with any Python 3 environment given that the following packages are installed:
WPJsonScraper is written in Python and should work with any Python 3
environment given that the following packages are installed:

* Python 3
* requests
Expand All @@ -19,4 +25,40 @@ Just clone the repository with git and run `pip install -r requirements.txt`

## Usage

To be determined
The tool needs the definition of a target WordPress installation and a flag
instructing which action to do.

You may want to have all available information using the -a flag. But this is
maybe a bit verbose, so you can select which categories of information you need
in these ones :

* -h, --help: display the help and exit
* -v, --version: display the version number and exit
* -a, --all: display all data available
* -i, --info: dump basic information about the target
* -e, --endpoints: dump full endpoint documentation
* -p, --posts: list all published posts
* -u, --users: list all users
* -t, --tags: list all tags
* -c, --categories: list all categories
* -m, --media: list all public media objects
* -g, --pages: list all public pages
* --no-color: remove color (for example to redirect the output to a file)

Moreover, you can export contents of pages and posts to a folder in separate
files:

* --export-pages PAGE_EXPORT_FOLDER
* --export-posts POST_EXPORT_FOLDER

## Features to implement

WPJsonScraper is not a mature project yet and its features are pretty basic for
the moment. Some of the features that could be implemented in the future are:

* Progress display while retrieving information
* Comments dumping
* Plugins support
* Specific retrievals by id or search options
* Authentication support
* Proxy support
Binary file added doc/WPJsonScraperCapture.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6072b41

Please sign in to comment.