Giter VIP home page Giter VIP logo

grab's Introduction

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.

grab's People

Contributors

boring-dragon avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.