-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathohz.php
More file actions
43 lines (26 loc) · 848 Bytes
/
ohz.php
File metadata and controls
43 lines (26 loc) · 848 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
$xhe_host ="127.0.0.1:7013";
// The following code is required to properly run XWeb Human Emulator
require("C:\XWeb\Human Emulator Free\Templates\xweb_human_emulator.php");
// navigate to google
$keys = file("C:\\1.txt");
$file = "C:\\1.html";
for($ii=0;$ii<count($keys);$ii++)
{
// ïîëó÷èòü çàïðîñ
$ks = trim($keys[$ii]);
$browser->navigate($ks);
$t="<p>"."1 ".$h1->get_inner_text_by_number(0)."</p>";
$textfile->add_string_to_file($file,$t)."<br>";
$k="<p>"."2 ".$div->get_by_attribute("class","tovar-price-button", false)->get_inner_text();
$textfile->add_string_to_file($file,$k)."<br>";
$debug->optimize_memory()."<br>";
$image->click_by_number(2);
$s="<p>"."3 ".$image->get_src_by_number(6)."</p>";
$textfile->add_string_to_file($file,$s)."<br>";
}
// ïîêàçàòü
$app->shell_execute("",$file);
// Quit
$app->quit();
?>