https://github.com/boring-dragon/grab
Grab is an indexing CLI tool for WordPress API
https://github.com/boring-dragon/grab
console grab laravel-zero maldives php scraper
Last synced: 3 months ago
JSON representation
Grab is an indexing CLI tool for WordPress API
- Host: GitHub
- URL: https://github.com/boring-dragon/grab
- Owner: boring-dragon
- Created: 2020-04-25T23:47:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T19:35:52.000Z (about 2 years ago)
- Last Synced: 2025-03-20T11:58:39.232Z (3 months ago)
- Topics: console, grab, laravel-zero, maldives, php, scraper
- Language: PHP
- Homepage:
- Size: 244 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://laravel-zero.com/docs/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` |```bash
php grab fetch:comments {sitename.com}
```
- Example:```bash
php grab fetch:comments vaahaka.com
```If the comments are at a different endpoint you can pass in a prefix with
--prefix=
```bash
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` |```bash
php grab fetch:posts {sitename.com}
```
- Example:```bash
php grab fetch:posts vaahaka.com
```If the posts are at a different endpoint you can pass in a prefix with
--prefix=
```bash
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.