PHPackages                             jaywood/jw-shortcode-scraper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. jaywood/jw-shortcode-scraper

ActiveWp-cli-package[PDF &amp; Document Generation](/categories/documents)

jaywood/jw-shortcode-scraper
============================

A WP-CLI script to scrape all blog posts for shortcodes ( registered or not ) and provides you a report after complete with CSV capability.

1.0.1(7y ago)531462[2 PRs](https://github.com/JayWood/jw-wpcli-shortcode-scraper/pulls)GPL-3.0-or-laterPHPPHP &gt;=5.4

Since Sep 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/JayWood/jw-wpcli-shortcode-scraper)[ Packagist](https://packagist.org/packages/jaywood/jw-shortcode-scraper)[ Docs](http://plugish.com)[ RSS](/packages/jaywood-jw-shortcode-scraper/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)DependenciesVersions (5)Used By (0)

WP CLI Shortcode Scraper
========================

[](#wp-cli-shortcode-scraper)

This is a shortcode scraper with multisite compatability. The scraper will walk over any site you specify looking for shortcodes. All found shortcodes in posts will be put together for a report, which is output at the end of the operation.

**Pull requests are always welcome**

Screenshots
-----------

[](#screenshots)

*( showing the output in console )*[![](https://camo.githubusercontent.com/eaee3a4a3394c65cbb75bfb3149756dba803392116a06948d618e9f0405a0ac1/68747470733a2f2f7777772e706c75676973682e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031382f30372f736372617065722d726573756c74732e706e67)](https://camo.githubusercontent.com/eaee3a4a3394c65cbb75bfb3149756dba803392116a06948d618e9f0405a0ac1/68747470733a2f2f7777772e706c75676973682e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031382f30372f736372617065722d726573756c74732e706e67)

*( showing the resulting CSV output )*[![](https://camo.githubusercontent.com/ef9ffff90948d1bc61b92fbbb08506dd752fc74841fa567c96ed6b3f1281ddba/68747470733a2f2f7777772e706c75676973682e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031382f30372f736372617065722d726573756c74732d6373762e706e67)](https://camo.githubusercontent.com/ef9ffff90948d1bc61b92fbbb08506dd752fc74841fa567c96ed6b3f1281ddba/68747470733a2f2f7777772e706c75676973682e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031382f30372f736372617065722d726573756c74732d6373762e706e67)

Usage
-----

[](#usage)

### Installation - Composer

[](#installation---composer)

`composer require jaywood/jw-shortcode-scraper`

If you happen to use the sweet [Composer Installers](https://github.com/composer/installers) library, this CLI script is marked as a `wp-cli-package` for ease of use later.

### Installation - Manual

[](#installation---manual)

1. Download or clone the repository to `wp-content/mu-plugins/jw-wpcli-shortcode-scraper/` *( Name is up to you )*
2. Create a new file in `wp-content/mu-plugins` call it whatever you want, I use `init.php`
3. Require the file like so:

```
