summaryrefslogtreecommitdiff
path: root/getgbook.1
blob: 1141aa405c8f3c44288e46407db82ce50e46ed6d (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
58
59
60
61
62
63
64
.\" See COPYING file for copyright and license details.
.TH GETGBOOK 1 getgbook\-VERSION
.SH NAME
getgbook \- downloads books from google books
.SH SYNOPSIS
.B getgbook
.RB [-c|-n]
.RB bookid
.SH DESCRIPTION
getgbook downloads pages of books from google books' "book
preview" service. Some pages are not available, in which
case they will be skipped.
.SH OPTIONS
.TP
.B \-c
Downloads from page codes given on stdin (one code per line). 
Google books page codes are on of the following, followed by
a number:
.RB PP
.RB PR
.RB PA
.RB PT
.TP
.B \-n
Downloads from page numbers given on stdin (one number per
line).
.TP
.B bookid
is the unique ID Google assigns to each book. It is 12
characters long. It can be found by looking for the 'id='
part of the URL of its Google Books page.
.SH NOTES
Some pages of "limited preview" books are never available.
.PP
Book pages vary in availability depending on the location of
your IP.
.PP
getgbook will not try to download pages that have already
been downloaded, so stopping and then starting it later will
continue from where it left off.
.PP
getgbook uses several cookies to get as many pages as possible.
However Google Books also limits the number of pages based on
IP address, for 24 hours. Therefore if not all pages are
downloaded it may be worth rerunning getgbook in 24 hours, or
from a different IP.
.PP
Google makes the scans for many books it believes to be in the
public domain available to download directly from
.IR http://www.archive.org/details/googlebooks
.SH EXAMPLES
.TP
.B download all of a book
getgbook ta1uaL7RF5g
.TP
.B download the first 100 pages of a book
seq 100 | getgbook -n ta1uaL7RF5g
.TP
.B download specific pages from a list with one page number per line
getgbook -n ta1uaL7RF5g < pagelist.txt
.SH SEE ALSO
.IR getabook (1),
.IR getbnbook (1),
.IR getxbookgui (1)