-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscrapng-precios.php
97 lines (91 loc) · 3.9 KB
/
scrapng-precios.php
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
require_once __DIR__ . '/app/link.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<link rel="stylesheet" type="text/css" href="<?php echo app_url(); ?>css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Bree+Serif|Work+Sans" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo app_url(); ?>css/estilos.css">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/start/jquery-ui.css">
<title>Teccheck</title>
</head>
<body>
<?php
include 'header.php';
?>
<div class="row body">
<?php
include 'menu.php';
?>
<div class="col-md-9 box-container cuerpo">
<h3>Scraping Precio's<br><br></h3>
<div class="row">
<div class="col-md-12" align="center">
<ul class="lista_amazon">
<li>
<select class="form-control" id="tiendas" name="tiendas" style="width: 50%">
<?php
$tiendas =['sanborns_pl','linio_pl','amazon_pl','claroshop_pl','coppel_pl','sears_pl','sams_pl','bestbuy_pl','walmart_pl','amazon_affiliate_link','linio_affiliate_link','liverpool_pl','office_max_pl','office_depot_pl','palacio_pl','soriana_pl','elektra_pl','sony_pl','costco_pl','radioshack_pl'];
echo "<option value=''>Elige una tienda</option>";
foreach ($tiendas as $value) {
echo "<option value='".$value."'>".$value."</option>";
}
?>
</select>
<br>
</li>
<li>
<select class="form-control" id="categoria" name="categoria" style="width: 50%">
<option>Elige una categoria</option>
</select>
<br>
</li>
<li id="primer_scrap">
<button class="btn btn-info" onclick="iniciarProceso();">
Iniciar
</button>
<br><br>
</li>
<li id="segundo_scrap" style="display: none;">
<button class="btn btn-success" onclick="setIntervalos();getPrecios();">
Obtener precio de productos
</button>
<br><br>
</li>
<li id="tercer_scrap" style="display: none">
<a href="precios" class="btn btn-info">Finalizar</a>
</li>
</ul>
<div class="bar_fondo" style="display: none">
<div id="bar_scrapping" class="bar_liquid">
0
</div>
</div>
</div>
<div class="col-md-12">
<label for="consola_scrapping">
<b>Consola</b>
</label>
<div id="consola_scrapping" class="form-control consola"></div>
</div>
</div>
<?php include 'footer.php' ?>
</div>
<div id="modal-avisoScrap" title="x" style="overflow-x:hidden;display: none" align="left">
<h3 style="color: red">
<b>Atención ! </b>
<img src="<?php echo app_url(); ?>img/warning.png">
</h3 style="color: black">
<h4>Antes y durante el proceso es importante no apagar el equipo, seguir los pasos, no cerrar el navegador, y verificar que se tienen una buena conexión a internet.</h4>
</div>
</div>
<script type="text/javascript" src="<?php echo app_url(); ?>js/scraping-precios.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("a[href=precios]").addClass("menu-activo");
});
</script>
</body>
</html>