65 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html>
 | |
| <html>
 | |
| <link>
 | |
| <meta charset="utf-8">
 | |
| <title>Data Extractor</title>
 | |
| <script charset="UTF-8" type="text/javascript" src="../scripts/jquery.min.js"></script>
 | |
| <script charset="UTF-8" type="text/javascript" src="../styles/bootstrap.min.js"></script>
 | |
| 
 | |
| <link rel="stylesheet" href="../styles/bootstrap.min.css">
 | |
| </head>
 | |
| 
 | |
| <body style="margin: 20px 10px;">
 | |
|     <div class="container-fluid" style="min-width: 420px;">
 | |
|         <div class="row">
 | |
|             <div class="col">
 | |
|                 <h6>Usage</h6>
 | |
|             </div>
 | |
|         </div>
 | |
|         <div class="row">
 | |
|             <div class="col">
 | |
|                 <div class="alert alert-info small">
 | |
|                     <!-- <h6>Usage:</h6> -->
 | |
|                     <p>
 | |
|                         <b>Open console</b> and
 | |
|                         <b>switch to Data Extracter</b>, then call the
 | |
|                         <b>extract</b> function.
 | |
|                     </p>
 | |
|                     <p>
 | |
|                         <img src="demo.png" alt="" style="max-width: 489px; width: 100%; border-radius: 5px">
 | |
|                     </p>
 | |
| 
 | |
|                 </div>
 | |
|             </div>
 | |
|         </div>
 | |
|         <div class="row">
 | |
| 
 | |
|             <div class="col">
 | |
|                 <h6>Examples</h6>
 | |
|             </div>
 | |
|         </div>
 | |
|         <div class="row">
 | |
|             <div class="col">
 | |
|                 <div class="alert alert-success small">
 | |
|                     <p>
 | |
|                         <b>Extract current page</b>:
 | |
|                         <br>extract("table tr", ["td:nth-child(0)","td:nth-child(1)"])
 | |
|                     </p>
 | |
|                     <p>
 | |
|                         <b>Extract pages of sample.com (1-10, interval 1)</b>:
 | |
|                         <br>extract("table tr", ["td:nth-child(0)","td:nth-child(1)"],"http://sample.com/?pn=${page}",1,10,1)
 | |
| 
 | |
|                     </p>
 | |
|                     <p>
 | |
|                         <b>Extract specified pages (1,3,5)</b>:
 | |
|                         <br>extract("table tr", ["td:nth-child(0)","td:nth-child(1)"],"http://sample.com/?pn=${page}",[1,3,5])
 | |
| 
 | |
|                     </p>
 | |
| 
 | |
|                 </div>
 | |
|             </div>
 | |
|         </div>
 | |
|     </div>
 | |
| </body>
 | |
| 
 | |
| </html> |