-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextractor.html
71 lines (69 loc) · 2.13 KB
/
extractor.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Extractor</title>
<style>
table {
width: 70vw;
border-collapse: collapse;
}
th, td {
border: 1px solid black;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
</style>
<script src="extract.js" defer></script>
</head>
<body>
<h1>Welcome to extractor!</h1>
<p>
Caution: make sure that the search criteria to extract data are correct before using this! (Need to hard code this based on the html of the url you're looking at)<br><br>
Instructions: (1) Load all data and then <b>remember to save</b> (note, you can re-save or clear the table at any step). (2a) Input filters for inclusion. (2b) Input filters for exclusion. (3) Convert the table into text.
</p>
<hr>
<button id="save">Save!</button>
<button id="clear">Clear all!</button>
<br>
<br>
<label for="url">Step 1. Url to extract data from: </label>
<input type="text" name="url" id="url">
<button id="submit_btn">Submit</button>
<br>
<br>
<label for="filter">Step 2a. Includes: </label>
<input type="text" name="filter" id="filter">
<button id="filter_btn">Filter</button>
<button id="unfilter_btn">Unfilter</button>
<br>
<br>
<label for="exc">Step 2b. Excludes: </label>
<input type="text" name="exc" id="exc">
<button id="exc_btn">Filter</button>
<button id="exc_unfil_btn">Unfilter</button>
<br>
<br>
<label for="textify">Step 3. Textify: </label>
<button id="textify" name="textify">Textify</button>
<button id="back" name="back">Back</button>
<br>
<br>
<div id="content">
<table id="data">
<thead>
<th>s/n</th>
<th>Title</th>
<th>Link</th>
<th>Type</th>
<th>Date</th>
</thead>
<tbody id="tbody"></tbody>
</table>
</div>
</body>
</html>