+ // Try to fetch the data from noscrape. This is faster than parsing the HTML
+ $noscrape = str_replace("/hcard/", "/noscrape/", $url);
+ $noscrapejson = fetch_url($noscrape);
+ $noscrapedata = array();
+ if ($noscrapejson) {
+ $noscrapedata = json_decode($noscrapejson, true);
+
+ if (is_array($noscrapedata))
+ if ($noscrapedata["nick"] != "")
+ return($noscrapedata);
+ }
+