Grab is an indexing CLI tool for WordPress API. Built with laravel Zero.
Clone the repo.
composer install
Make a database.sqlite file inside /database directory or you can use your config to generate the database.
Now you are all set to use the application
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.com
If the comments are at a different endpoint you can pass in a prefix with --prefix=
PHP grab fetch:comments addulive.com --prefix=talks
Which will correspond to https://addulive.com/wp-json/wp/v2/talks
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.com
If the posts are at a different endpoint you can pass in a prefix with --prefix=
PHP grab fetch:posts addulive.com --prefix=talks
Which will correspond to https://addulive.com/wp-json/wp/v2/talks
- Addulive.com ✔
- Feshun.com ✔
- Vaahaka.com ✔
- esfiya.com ✔
- faanooz.com ✔
- ungoofaaru.com ✔
- vaguthu.mv ❌
- thiladhun.com ❌