summaryrefslogtreecommitdiff
path: root/blq.1
blob: 8ddaa3b265a705885fca24e891904609c631c36b (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
.Dd $Mdocdate$
.Dt blq 1
.Os
.
.Sh NAME
.Nm blq
.Nd search utility for Blocket.se
.
.Sh SYNOPSIS
.Nm
.Op Fl r
.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.
.
.Sh AUTHORS
.Pp
.Nm
is written by John Ankarström
.Aq Mt john (at) ankarstrom.se .