ASDA Grocery Scraper avatar
ASDA Grocery Scraper

Pricing

$30.00/month + usage

Go to Store
ASDA Grocery Scraper

ASDA Grocery Scraper

jupri/asda-scraper

Developed by

cat

Maintained by Community

Scrape ASDA.com Groceries

0.0 (0)

Pricing

$30.00/month + usage

2

Monthly users

6

Runs succeeded

68%

Last modified

a year ago

CT

Get Url with query parameters

Closed
coordinated_thundertube opened this issue
2 years ago

I am able to create a task for a specific query for example: query => 'pasta', 'pagination' => 20 using the create new task function. I am creating an URL that I am importing into my PHP code.

Is there a way to specify the query parameter and the pagination from the request?

Ex: tps://api.apify.com/v2/datasets/dzMViUqPImDpkxvCy/items?token=***&query=pasta&pagination=5

CT

coordinated_thundertube

2 years ago

Sorted

1$payload = json_encode( array( "query"=> 'pasta', 'limit' => 5, 'facets' => false ) );
2    curl_setopt($ch, CURLOPT_URL,"https://api.apify.com/v2/acts/jupri~asda-scraper/run-sync-get-dataset-items?token=[your_token]");
3    curl_setopt($ch, CURLOPT_POST, 1);
4    curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
5    curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
6    curl_setopt( $ch, CURLOPT_POSTFIELDS, $payload );
7    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
8
9    $server_output = curl_exec($ch);
10    $jsonArrayResponse = json_decode($server_output);
11
12    var_dump($jsonArrayResponse);
Jupri avatar

cat (Jupri)

2 years ago

Hi Alex. parameter pagination doesn't exist. You should use limit

Pricing

Pricing model

Rental 

To use this Actor, you have to pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage.

Free trial

7 days

Price

$30.00