div > div.content.join-text-wrap").forEach(univ => console.log(univ.firstChild)) $univ = trim($request->get("univ")); Log::info("univ is {$univ}"); $f = null; if (Redis::connection()->get("univ_json") == null) { $f = file_get_contents("/Users/shixuesen/Downloads/univ_e.json"); Redis::connection()->set("univ_json", $f); } else { $f = Redis::connection()->get("univ_json"); } if ($univ == null || $univ == "") { return $f; } Log::info("univs is " . $f); $content = json_decode($f, true); return Arr::get($content, $univ, 999); } }