From 00bcaead3b61ab4f637c562a63e11e91d3b7852e Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 18 Jun 2018 22:06:04 +0200 Subject: Added multiple page crawling --- assets/php/getJson.php | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) (limited to 'assets/php') diff --git a/assets/php/getJson.php b/assets/php/getJson.php index f4155e3..b72070a 100644 --- a/assets/php/getJson.php +++ b/assets/php/getJson.php @@ -1,11 +1,27 @@ 0) { + $LastPage = FALSE; + $NetflixJson .= json_encode(json_decode($Result, TRUE)["viewedItems"][0]) . ","; + } else { + $LastPage = TRUE; + } + + curl_close($ch); + $CurPage++; +} + +print_r($NetflixJson . "]"); \ No newline at end of file -- cgit v1.2.3