This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function _arrd($array1, $array2, $label, $depth = 0, $has_diff = false) { | |
$array1 = (array)$array1; | |
$array2 = (array)$array2; | |
if (!$depth) { | |
$label .= ': '; | |
} | |
$diff = array_diff_assoc($array1, $array2); | |
if (count($diff)) { | |
echo "$label\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dl_require(['puppeteer', 'fs', 'fast-csv']).then(_modules => { | |
const puppeteer = _modules.puppeteer; | |
const fs = _modules.fs; | |
const fast_csv = _modules['fast-csv']; | |
let main_url = 'https://example.com/'; | |
let parsed = []; | |
let parsed_pages = []; | |
let need_parse = [main_url]; | |
let browser = null; |
OlderNewer