Grab 🔮
Grab is an indexing CLI tool for WordPress API. Built with laravel Zero.
Installation
Clone the repo.
Download the dependency
composer install
Create database
Make a database.sqlite file inside /database directory or you can use your config to generate the database.
Usage
Now you are all set to use the application
Grabbing comments
Comment schema
| Name | Datatype |
|---|---|
| source | string |
| comment_id | unsignedInteger |
| post_id | unsignedInteger |
| author_name | string |
| comment | text |
| upvotes | unsignedInteger-nullable |
| downvotes | unsignedInteger-nullable |
| date | timestamp |
php grab fetch:comments {sitename.com}- Example:
php grab fetch:comments vaahaka.comIf the comments are at a different endpoint you can pass in a prefix with --prefix=
PHP grab fetch:comments addulive.com --prefix=talksWhich will correspond to https://addulive.com/wp-json/wp/v2/talks
Grabbing Posts
Post Schema
| Name | Datatype |
|---|---|
| source | string |
| post_id | unsignedInteger |
| title | string |
| text | text-nullable |
| link | string |
php grab fetch:posts {sitename.com}- Example:
php grab fetch:posts vaahaka.comIf the posts are at a different endpoint you can pass in a prefix with --prefix=
PHP grab fetch:posts addulive.com --prefix=talksWhich will correspond to https://addulive.com/wp-json/wp/v2/talks
Supported Sites
- Addulive.com
✔ - Feshun.com
✔ - Vaahaka.com
✔ - esfiya.com
✔ - faanooz.com
✔ - ungoofaaru.com
✔
Unsupported Sites
- vaguthu.mv
❌ - thiladhun.com
❌