forked from kingarthur2/superfecta-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsource-Herold_Austria.module
More file actions
29 lines (19 loc) · 880 Bytes
/
source-Herold_Austria.module
File metadata and controls
29 lines (19 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
//Created July 16,2011 by lgaetz
class Herold_Austria extends superfecta_base {
public $description = "http://www.herold.at/ - These listings include data for Austria.";
public $version_requirement = "2.11";
function get_caller_id($thenumber, $run_param=array()) {
$this->DebugPrint("Searching http://www.herold.at/ ... ");
// Set the url we're searching for valid as of July 16, 2011
$url = "http://www.herold.at/en/gelbe-seiten/telefon_" . $thenumber . "/";
// Patterns to search for
$regexp = array(
"/class=\"bold \">(.*?)<\/a>/", //June 29, 2012 gives false hits, class="bold ">TAXI 31300 VermittlungsgmbH</a>
);
if ($this->SearchURL($url, $regexp, $match)) {
$caller_id = $this->ExtractMatch($match);
}
return($caller_id);
}
}