kindle 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Changelog +11 -0
- data/LICENSE +22 -0
- data/README.md +19 -0
- data/lib/kindle/version.rb +1 -1
- data/lib/kindle.rb +2 -1
- metadata +16 -22
- data/README +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1aab8778c3a0be8f8dcdc26f08a8a38b65bfb7e0
|
4
|
+
data.tar.gz: ebc53336f7b9b95e94868fe43b0a097664450dd4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d2836557deb6e61cebac2ebcaa06cab72d5c9544627b57c5db9b1015aac428c2c88c0a754ead347f7005635f713c7cc7d9d21c209eae8e3a93ca2c95d98b921e
|
7
|
+
data.tar.gz: 41f54e665092e900d815e7fde9a78d6e917ba50359b86fcc45da9a06af4dc66e35c3287fb91f74db1eb3dca74219be4a3bb7cfc46bbf8292f67ec3671c970bae
|
data/Changelog
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Matt Petty
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# Kindle Highlights Fetcher
|
2
|
+
|
3
|
+
This little application will fetch a list of all your highlights from your kindle ebooks.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
gem install kindle
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
kindle # Will prompt you for your login info. Don't worry it isn't stored.
|
12
|
+
|
13
|
+
## Other usage and license
|
14
|
+
|
15
|
+
Hastily thrown together but incredibly useful since Amazon does not provide an API for kindle highlights. Please use this however you would like. This is licensed under MIT license.
|
16
|
+
|
17
|
+
|
18
|
+
© 2012 Matt Petty
|
19
|
+
[@lodestone](http://about.me/lodestone)
|
data/lib/kindle/version.rb
CHANGED
data/lib/kindle.rb
CHANGED
@@ -72,7 +72,8 @@ module Kindle
|
|
72
72
|
upcoming_string = @current_upcoming.map{|l| "upcoming_asins[]=#{l}" } * '&'
|
73
73
|
current_offset = @current_offset
|
74
74
|
url = "https://kindle.amazon.com/your_highlights/next_book?#{asins_string}¤t_offset=#{@current_offset}&#{upcoming_string}"
|
75
|
-
|
75
|
+
ajax_headers = { 'X-Requested-With' => 'XMLHttpRequest', 'Host' => 'kindle.amazon.com' }
|
76
|
+
@current_page = @agent.get(url,[],'https://kindle.amazon.com/your_highlight', ajax_headers)
|
76
77
|
extract_highlights(@current_page)
|
77
78
|
@current_page
|
78
79
|
end
|
metadata
CHANGED
@@ -1,62 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kindle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Matt Petty
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-07-27 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: nokogiri
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: highline
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: mechanize
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
description: Manage your kindle highlights with ruby
|
@@ -69,8 +62,10 @@ extra_rdoc_files: []
|
|
69
62
|
files:
|
70
63
|
- .gitignore
|
71
64
|
- .rvmrc
|
65
|
+
- Changelog
|
72
66
|
- Gemfile
|
73
|
-
-
|
67
|
+
- LICENSE
|
68
|
+
- README.md
|
74
69
|
- Rakefile
|
75
70
|
- bin/kindle
|
76
71
|
- kindle.gemspec
|
@@ -78,26 +73,25 @@ files:
|
|
78
73
|
- lib/kindle/version.rb
|
79
74
|
homepage: ''
|
80
75
|
licenses: []
|
76
|
+
metadata: {}
|
81
77
|
post_install_message:
|
82
78
|
rdoc_options: []
|
83
79
|
require_paths:
|
84
80
|
- lib
|
85
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
82
|
requirements:
|
88
|
-
- -
|
83
|
+
- - '>='
|
89
84
|
- !ruby/object:Gem::Version
|
90
85
|
version: '0'
|
91
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
-
none: false
|
93
87
|
requirements:
|
94
|
-
- -
|
88
|
+
- - '>='
|
95
89
|
- !ruby/object:Gem::Version
|
96
90
|
version: '0'
|
97
91
|
requirements: []
|
98
92
|
rubyforge_project: kindle
|
99
|
-
rubygems_version:
|
93
|
+
rubygems_version: 2.0.2
|
100
94
|
signing_key:
|
101
|
-
specification_version:
|
95
|
+
specification_version: 4
|
102
96
|
summary: Manage your kindle highlights with ruby
|
103
97
|
test_files: []
|
data/README
DELETED
File without changes
|