8000 Rating · Jakiboy/apaapi Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Jakiboy edited this page Jan 29, 2025 · 1 revision

Apaapi Rating Documentation

This document guide you on how to utilize the Apaapi rating (Scraper).

⚡ Initialization:

To use the Apaapi product, it needs to be imported into your project and initialized (No credentials required).

use Apaapi\includes\Rating;

$rating = new Rating(keyword: '_KEYWORD_', local: '_LOCALE_', tag: '_TAG_');

⚡ Get:

The get() method is designed to retrieve only a single product rating.

  • Accept: String ASIN, ISBN
$rating = new Rating(keyword: 'B09G8XNW16');
$data = $rating->get();

⚡ Scraper:

This class inherits from the Apaapi scraper and uses the HTML DOM with specific selectors to get data.

Override base URL

Use setBaseUrl() method to override the base URL.

$rating->setBaseUrl();

Override selectors

Use setSelectors() method to override the selectors array.

$rating->setSelectors();
Clone this wiki locally
0