blob: a2607c8a5ffa4d4806bd2461f0dd2161c9d6388e (
plain)
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
|
.Dd $Mdocdate$
.Dt blq 1
.Os
.
.Sh NAME
.Nm blq
.Nd search utility for Blocket.se
.
.Sh SYNOPSIS
.Nm
.Op Fl r
.Op Fl d
.Ar query
.
.Sh DESCIPTION
.Pp
.Nm
is a script for searching Blocket.se, the Swedish equivalent to Craigslist, without the need for a web browser.
If no command-line flags are present,
.Nm
outputs the search results in JSON format.
The results can be processed with a utility like
.Xr jq 1
or the included
.Xr blm 1 ,
which translates them into
.Xr mboxu 5
format.
If
.Fl r
is present,
.Nm
automatically invokes
.Xr blm 1
and opens the resulting mbox file in
.Xr mutt 1 ,
.Xr mailx 1
or the value of
.Ev MAILER .
The temporary mbox file is automatically deleted.
If
.Fl r
is present together with
.Fl d ,
.Xr blm 1
is called with the
.Fl d
flag.
.
.Sh AUTHORS
.Pp
.Nm
is written by John Ankarström
.Aq Mt john (at) ankarstrom.se .
|