Skip to content

boring-dragon/grab

Repository files navigation

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.

Laravel zero 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.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

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.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


Supported Sites


  • Addulive.com ✔
  • Feshun.com ✔
  • Vaahaka.com ✔
  • esfiya.com ✔
  • faanooz.com ✔
  • ungoofaaru.com ✔

Unsupported Sites


  • vaguthu.mv ❌
  • thiladhun.com ❌

This is an experimental project. Please don't misuse this application.

About

Grab is an indexing CLI tool for WordPress API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages