update documents

This commit is contained in:
2018-09-28 14:14:59 +08:00
parent 93dc249e2a
commit 78fa48beb0
4 changed files with 149 additions and 10 deletions

View File

@ -21,12 +21,11 @@
<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.
<b>Open console of extesion backgroud page </b> and
type your scripts.
</p>
<p>
<img src="demo.png" alt="" style="max-width: 489px; width: 100%; border-radius: 5px">
<img src="../images/console.png" alt="" style="max-width: 489px; width: 100%; border-radius: 5px">
</p>
</div>
@ -41,19 +40,21 @@
<div class="row">
<div class="col">
<div class="alert alert-success small">
<p>
<b>View Help</b>:
<br>extract()
</p>
<p>
<b>Extract current page</b>:
<br>extract("list-item", ["a.title", "p.content"])
<br>new Extractor().task(".list-item", ["a.title", "p.content"]).start();
</p>
<p>
<b>Extract multiple pages (1-10, interval 1)</b>:
<br>extract("list-item", ["a.title", "p.content"], "http://sample.com/?pn=${page}", 1, 10, 1)
<br>new Extractor().task(".list-item", ["a.title", "p.content"],
"http://sample.com/?pn=${page}", 1, 10, 1).start();
</p>
<p>
<b>Full document (Right click - Open in new tab):</b>
<br>
<a href="https://git.jebbs.co/jebbs/data-extracter-extesion">https://git.jebbs.co/jebbs/data-extracter-extesion</a>
</p>
</div>
</div>
</div>