-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path682.by.php
More file actions
47 lines (29 loc) · 1.15 KB
/
682.by.php
File metadata and controls
47 lines (29 loc) · 1.15 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
<?php
$xhe_host ="127.0.0.1:7023";
// 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++)
{
$debug->optimize_memory()."<br>";
// ïîëó÷èòü çàïðîñ
$ks = trim($keys[$ii]);
$browser->navigate($ks);
$tr="<p>"." ññûëêà ".$ks."</p>";
$textfile->add_string_to_file($file,$tr)."<br>";
$t="<p>"."íàèìåíîâàíèå ".$h1->get_inner_text_by_number(0)."</p>";
$textfile->add_string_to_file($file,$t)."<br>";
$k="<p>".$h1->get_inner_text_by_number(0)." öåíà ".$div->get_by_attribute("class","b-product__price-holder", false)->get_inner_text();
$textfile->add_string_to_file($file,$k)."<br>";
$s="<p>".$h1->get_inner_text_by_number(0)." ôîòî ".$image->get_src_by_number(0)."</p>";
$textfile->add_string_to_file($file,$s)."<br>";
$w="<p>".$h1->get_inner_text_by_number(0)." õàðàêòåðèñòèêè".$div->get_by_attribute("class","b-content__body", false)->get_inner_text();
$textfile->add_string_to_file($file,$w)."<br>";
}
// ïîêàçàòü
$app->shell_execute("",$file);
// Quit
$app->quit();
?>