forked from rust-scraper/scraper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscraper.1
72 lines (72 loc) · 1.28 KB
/
scraper.1
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
.Dd October 29, 2018
.Dt SCRAPER 1
.Os
.
.Sh NAME
.Nm scraper
.Nd HTML querying with CSS selectors
.
.Sh SYNOPSIS
.Nm
.Op Fl HIcint
.Op Fl a Ar attr
.Op Fl d | f
.Ar selector
.Op Ar
.
.Sh DESCRIPTION
The
.Nm
utility parses HTML and outputs elements matching CSS selectors.
.
.Pp
The arguments are as follows:
.Bl -tag -width Ds
.
.It Fl H , Fl \-html
Output the HTML of the matching elements.
This is the default.
.
.It Fl I , Fl \-inner\-html
Output the inner HTML of the matching elements.
.
.It Fl a Ar attr , Fl \-attr Ar attr
Output the value of the attribute
.Ar attr
of the matching elements.
.
.It Fl c , Fl \-classes
Output the classes of the matching elements.
.
.It Fl d , Fl \-document
Parse the input as HTML documents.
This is the default.
.
.It Fl f , Fl \-fragment
Parse the input as HTML fragments.
.
.It Fl i , Fl \-id
Output the IDs of the matching elements.
.
.It Fl n , Fl \-name
Output the names of the matching elements.
.
.It Fl t , Fl \-text
Output the text of the matching elements.
.El
.
.Sh EXIT STATUS
The
.Nm
utility exits 0 on success,
1 if no elements match,
and >1 if an error occurs.
.
.Sh AUTHORS
.An Curtis McEnroe Aq Mt [email protected]
.An Vivek Kushwaha Aq Mt [email protected]
.Pp
The
.Nm
utility relies heavily on code from the
.Lk https://servo.org "Servo project" .