-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpriceguard.php
More file actions
48 lines (30 loc) · 1.11 KB
/
priceguard.php
File metadata and controls
48 lines (30 loc) · 1.11 KB
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
44
45
46
47
48
<?php
$xhe_host ="127.0.0.1:7016";
// The following code is required to properly run XWeb Human Emulator
require("C:\XWeb\Human Emulator Free\Templates\xweb_human_emulator.php");
$keys = file("C:\\2.txt");
$file = "C:\\1.html";
for($ii=0;$ii<count($keys);$ii++)
{
// ïîëó÷èòü çàïðîñ
$ks = trim($keys[$ii]);
$browser->navigate("https://priceguard.ru/search?q=".$ks);
$image->click_by_number(1);
$image->screenshot_by_number("C:\\foto\\".$ks.".jpeg",1);
$s="<p>".$ks." ôîòî".$image->get_src_by_number(1)."</p>";
$debug->optimize_memory()."<br>";
$textfile->add_string_to_file($file,$s)."<br>";
$t="<p>".$ks." íàçâàíèå".$h1->get_inner_text_by_number(0)."</p>";
$textfile->add_string_to_file($file,$t)."<br>";
$debug->optimize_memory()."<br>";
$t="<p>".$ks." àííîòàöèÿ".$h2->get_inner_text_by_number(0)."</p>";
$textfile->add_string_to_file($file,$t)."<br>";
$debug->optimize_memory()."<br>";
$y="<p>".$ks." àâòîð".$span->get_by_attribute("class","op-param-value nw", false)->get_inner_text()."</p>";
$textfile->add_string_to_file($file,$y)."<br>";
}
// ïîêàçàòü
$app->shell_execute("",$file);
// Quit
$app->quit();
?>