topsy 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. data/.gitignore +2 -0
  2. data/README.markdown +3 -0
  3. data/Rakefile +8 -0
  4. data/TODO +1 -3
  5. data/VERSION +1 -1
  6. data/changelog.markdown +13 -2
  7. data/lib/topsy.rb +15 -15
  8. data/lib/topsy/client.rb +18 -8
  9. data/lib/topsy/linkpost.rb +10 -11
  10. data/lib/topsy/page.rb +12 -1
  11. data/test/fixtures/authorsearch-page2.json +115 -0
  12. data/test/fixtures/linkposts-page2.json +75 -0
  13. data/test/fixtures/search.json +1 -1
  14. data/test/test_topsy.rb +58 -18
  15. data/topsy.gemspec +5 -96
  16. metadata +4 -95
  17. data/.yardoc/checksums +0 -14
  18. data/.yardoc/objects/Topsy.dat +0 -0
  19. data/.yardoc/objects/Topsy/Author.dat +0 -0
  20. data/.yardoc/objects/Topsy/Author/to_s_i.dat +0 -0
  21. data/.yardoc/objects/Topsy/Author/type_i.dat +0 -0
  22. data/.yardoc/objects/Topsy/Client.dat +0 -0
  23. data/.yardoc/objects/Topsy/Client/author_info_i.dat +0 -0
  24. data/.yardoc/objects/Topsy/Client/author_search_i.dat +0 -0
  25. data/.yardoc/objects/Topsy/Client/credit_i.dat +0 -0
  26. data/.yardoc/objects/Topsy/Client/get_rate_limit_status_i.dat +0 -0
  27. data/.yardoc/objects/Topsy/Client/handle_response_i.dat +0 -0
  28. data/.yardoc/objects/Topsy/Client/link_post_count_i.dat +0 -0
  29. data/.yardoc/objects/Topsy/Client/link_posts_i.dat +0 -0
  30. data/.yardoc/objects/Topsy/Client/mashup_i.dat +0 -0
  31. data/.yardoc/objects/Topsy/Client/profile_search_i.dat +0 -0
  32. data/.yardoc/objects/Topsy/Client/raise_errors_i.dat +0 -0
  33. data/.yardoc/objects/Topsy/Client/related_i.dat +0 -0
  34. data/.yardoc/objects/Topsy/Client/search_count_i.dat +0 -0
  35. data/.yardoc/objects/Topsy/Client/search_i.dat +0 -0
  36. data/.yardoc/objects/Topsy/Client/stats_i.dat +0 -0
  37. data/.yardoc/objects/Topsy/Client/tags_i.dat +0 -0
  38. data/.yardoc/objects/Topsy/Client/trackbacks_i.dat +0 -0
  39. data/.yardoc/objects/Topsy/Client/trending_i.dat +0 -0
  40. data/.yardoc/objects/Topsy/Client/url_info_i.dat +0 -0
  41. data/.yardoc/objects/Topsy/LinkSearchResult.dat +0 -0
  42. data/.yardoc/objects/Topsy/LinkSearchResult/to_s_i.dat +0 -0
  43. data/.yardoc/objects/Topsy/Linkpost.dat +0 -0
  44. data/.yardoc/objects/Topsy/Linkpost/target_3D_i.dat +0 -0
  45. data/.yardoc/objects/Topsy/Linkpost/to_s_i.dat +0 -0
  46. data/.yardoc/objects/Topsy/LinkpostCount.dat +0 -0
  47. data/.yardoc/objects/Topsy/LinkpostCount/to_s_i.dat +0 -0
  48. data/.yardoc/objects/Topsy/Page.dat +0 -0
  49. data/.yardoc/objects/Topsy/Page/initialize_i.dat +0 -0
  50. data/.yardoc/objects/Topsy/Page/list_3D_i.dat +0 -0
  51. data/.yardoc/objects/Topsy/Page/to_s_i.dat +0 -0
  52. data/.yardoc/objects/Topsy/RateLimitInfo.dat +0 -0
  53. data/.yardoc/objects/Topsy/RateLimitInfo/refresh_in_seconds_i.dat +0 -0
  54. data/.yardoc/objects/Topsy/RateLimitInfo/reset_i.dat +0 -0
  55. data/.yardoc/objects/Topsy/SearchCounts.dat +0 -0
  56. data/.yardoc/objects/Topsy/SearchCounts/all_time_i.dat +0 -0
  57. data/.yardoc/objects/Topsy/SearchCounts/hour_i.dat +0 -0
  58. data/.yardoc/objects/Topsy/SearchCounts/month_i.dat +0 -0
  59. data/.yardoc/objects/Topsy/SearchCounts/overall_i.dat +0 -0
  60. data/.yardoc/objects/Topsy/SearchCounts/this_hour_i.dat +0 -0
  61. data/.yardoc/objects/Topsy/SearchCounts/this_month_i.dat +0 -0
  62. data/.yardoc/objects/Topsy/SearchCounts/this_week_i.dat +0 -0
  63. data/.yardoc/objects/Topsy/SearchCounts/today_i.dat +0 -0
  64. data/.yardoc/objects/Topsy/SearchCounts/week_i.dat +0 -0
  65. data/.yardoc/objects/Topsy/Stats.dat +0 -0
  66. data/.yardoc/objects/Topsy/Stats/to_s_i.dat +0 -0
  67. data/.yardoc/objects/Topsy/Tag.dat +0 -0
  68. data/.yardoc/objects/Topsy/Tag/to_s_i.dat +0 -0
  69. data/.yardoc/objects/Topsy/Target.dat +0 -0
  70. data/.yardoc/objects/Topsy/Target/to_s_i.dat +0 -0
  71. data/.yardoc/objects/Topsy/Trend.dat +0 -0
  72. data/.yardoc/objects/Topsy/Trend/to_s_i.dat +0 -0
  73. data/.yardoc/objects/Topsy/Tweet.dat +0 -0
  74. data/.yardoc/objects/Topsy/Tweet/author_3D_i.dat +0 -0
  75. data/.yardoc/objects/Topsy/Tweet/target_3D_i.dat +0 -0
  76. data/.yardoc/objects/Topsy/Tweet/to_s_i.dat +0 -0
  77. data/.yardoc/objects/Topsy/UrlInfo.dat +0 -0
  78. data/.yardoc/objects/Topsy/UrlInfo/to_s_i.dat +0 -0
  79. data/.yardoc/objects/root.dat +0 -0
  80. data/.yardoc/proxy_types +0 -0
  81. data/doc/Topsy.html +0 -112
  82. data/doc/Topsy/Author.html +0 -201
  83. data/doc/Topsy/Client.html +0 -2096
  84. data/doc/Topsy/LinkSearchResult.html +0 -152
  85. data/doc/Topsy/Linkpost.html +0 -209
  86. data/doc/Topsy/LinkpostCount.html +0 -152
  87. data/doc/Topsy/Page.html +0 -284
  88. data/doc/Topsy/RateLimitInfo.html +0 -201
  89. data/doc/Topsy/SearchCounts.html +0 -91
  90. data/doc/Topsy/Stats.html +0 -152
  91. data/doc/Topsy/Tag.html +0 -152
  92. data/doc/Topsy/Target.html +0 -152
  93. data/doc/Topsy/Trend.html +0 -152
  94. data/doc/Topsy/Tweet.html +0 -266
  95. data/doc/Topsy/UrlInfo.html +0 -152
  96. data/doc/_index.html +0 -245
  97. data/doc/class_list.html +0 -177
  98. data/doc/css/common.css +0 -1
  99. data/doc/css/full_list.css +0 -23
  100. data/doc/css/style.css +0 -263
  101. data/doc/file.README.html +0 -151
  102. data/doc/file_list.html +0 -29
  103. data/doc/index.html +0 -151
  104. data/doc/js/app.js +0 -91
  105. data/doc/js/full_list.js +0 -39
  106. data/doc/js/jquery.js +0 -19
  107. data/doc/method_list.html +0 -352
  108. data/doc/top-level-namespace.html +0 -79
data/doc/css/style.css DELETED
@@ -1,263 +0,0 @@
1
- body {
2
- padding: 0 20px;
3
- font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
4
- font-size: 13px;
5
- }
6
- h1 { font-size: 25px; margin: 1em 0 0.5em; padding-top: 4px; border-top: 1px dotted #d5d5d5; }
7
- h1.noborder { border-top: 0px; margin-top: 0; padding-top: 4px; }
8
- h1.title { margin-bottom: 10px; }
9
- h1.alphaindex { margin-top: 0; font-size: 22px; }
10
- h2 {
11
- padding: 0;
12
- padding-bottom: 3px;
13
- border-bottom: 1px #aaa solid;
14
- font-size: 1.4em;
15
- margin: 1.8em 0 0.5em;
16
- }
17
- .clear { clear: both; }
18
- .docstring h1, .docstring h2, .docstring h3, .docstring h4 { padding: 0; border: 0; border-bottom: 1px dotted #bbb; }
19
- .docstring h1 { font-size: 1.2em; }
20
- .docstring h2 { font-size: 1.1em; }
21
- .docstring h3, .docstring h4 { font-size: 1em; border-bottom: 0; padding-top: 10px; }
22
-
23
- .note {
24
- color: #222;
25
- -moz-border-radius: 3px; -webkit-border-radius: 3px;
26
- background: #e3e4e3; border: 1px solid #d5d5d5; padding: 7px 10px;
27
- }
28
- .note.todo { background: #ffffc5; border-color: #ececaa; }
29
- .note.returns_void { background: #efefef; }
30
- .note.deprecated { background: #ffe5e5; border-color: #e9dada; }
31
- .note.title { text-transform: lowercase; padding: 1px 5px; margin-left: 5px; font-size: 0.9em; font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; }
32
- h1 .note.title { font-size: 0.5em; font-weight: normal; padding: 3px 5px; position: relative; top: -3px; text-transform: capitalize; }
33
- .note.title.constructor { color: #fff; background: #6a98d6; border-color: #6689d6; }
34
- .note.title.writeonly { color: #fff; background: #45a638; border-color: #2da31d; }
35
- .note.title.readonly { color: #fff; background: #6a98d6; border-color: #6689d6; }
36
- .note.title.private { background: #d5d5d5; border-color: #c5c5c5; }
37
-
38
- h3.inherited {
39
- font-style: italic;
40
- font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
41
- font-weight: normal;
42
- padding: 0;
43
- margin: 0;
44
- margin-top: 12px;
45
- margin-bottom: 3px;
46
- font-size: 13px;
47
- }
48
- p.inherited {
49
- padding: 0;
50
- margin: 0;
51
- margin-left: 25px;
52
- }
53
-
54
- dl.box {
55
- width: 520px;
56
- font-size: 1em;
57
- }
58
- dl.box dt {
59
- float: left;
60
- display: block;
61
- width: 100px;
62
- margin: 0;
63
- text-align: right;
64
- font-weight: bold;
65
- border: 1px solid #aaa;
66
- border-width: 1px 0px 0px 1px;
67
- padding: 6px 0;
68
- padding-right: 10px;
69
- }
70
- dl.box dd {
71
- float: left;
72
- display: block;
73
- width: 380px;
74
- margin: 0;
75
- padding: 6px 0;
76
- padding-right: 20px;
77
- border: 1px solid #aaa;
78
- border-width: 1px 1px 0 0;
79
- }
80
- dl.box .last {
81
- border-bottom: 1px solid #aaa;
82
- }
83
- dl.box .r1 { background: #eee; }
84
-
85
- ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; }
86
- #files { padding-left: 15px; font-size: 1.1em; }
87
-
88
- #files { padding: 0; }
89
- #files li { list-style: none; display: inline; padding: 7px 12px; line-height: 35px; }
90
-
91
- dl.constants { margin-left: 40px; }
92
- dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
93
- dl.constants dd { width: 75%; white-space: pre; font-family: monospace; margin-bottom: 18px; }
94
-
95
- .summary_desc { margin-left: 32px; display: block; font-family: sans-serif; }
96
- .summary_desc tt { font-size: 0.9em; }
97
- dl.constants .summary_desc { font-size: 0.9em; font-weight: normal; }
98
-
99
- .method_details { border-top: 1px dotted #aaa; margin-top: 15px; padding-top: 0; }
100
- .method_details.first { border: 0; }
101
- p.signature {
102
- font-size: 1.1em; font-weight: normal; font-family: Monaco, Consolas, Courier, monospace;
103
- padding: 6px 10px; margin-top: 18px;
104
- background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
105
- }
106
- p.signature tt { font-family: Monaco, Consolas, Courier, monospace; }
107
- p.signature .overload { display: block; }
108
- p.signature .extras { font-weight: normal; font-family: sans-serif; color: #444; font-size: 1em; }
109
- p.signature .aliases { display: block; font-weight: normal; font-size: 0.9em; font-family: sans-serif; margin-top: 0px; color: #555; }
110
- p.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace; font-weight: bold; color: #000; font-size: 1.2em; }
111
-
112
- .tags h3 { font-size: 1em; margin-bottom: 0; }
113
- .tags ul { margin-top: 5px; padding-left: 30px; list-style: square; }
114
- .tags ul li { margin-bottom: 3px; }
115
- .tags ul .name { font-family: monospace; font-weight: bold; }
116
- .tags ul p.note { padding: 3px 6px; }
117
- .tags { margin-bottom: 12px; }
118
-
119
- .tags .examples h3 { margin-bottom: 10px; }
120
- .tags .examples h4 { padding: 0; margin: 0; margin-left: 15px; font-weight: bold; font-size: 0.9em; }
121
-
122
- .tags .overload .overload_item { list-style: none; margin-bottom: 25px; }
123
- .tags .overload .overload_item .signature {
124
- padding: 2px 8px;
125
- background: #e5e8ff; border: 1px solid #d8d8e5; -moz-border-radius: 3px; -webkit-border-radius: 3px;
126
- }
127
- .tags .overload .signature { margin-left: -15px; font-family: monospace; display: block; font-size: 1.1em; }
128
- .tags .overload .docstring { margin-top: 15px; }
129
-
130
- .defines { display: none; }
131
-
132
- #method_missing_details .notice.this { position: relative; top: -8px; color: #888; padding: 0; margin: 0; }
133
-
134
- .showSource { font-size: 0.9em; }
135
- .showSource a:link, .showSource a:visited { text-decoration: none; color: #666; }
136
-
137
- #content a:link, #content a:visited { text-decoration: none; color: #05a; }
138
- #content a:hover { background: #ffffa5; }
139
- .docstring { margin-right: 6em; }
140
-
141
- ul.summary {
142
- list-style: none;
143
- font-family: monospace;
144
- font-size: 1em;
145
- line-height: 1.5em;
146
- }
147
- ul.summary a:link, ul.summary a:visited {
148
- text-decoration: none; font-size: 1.1em;
149
- }
150
- ul.summary li { margin-bottom: 5px; }
151
- .summary .summary_signature {
152
- padding: 1px 10px;
153
- background: #eaeaff; border: 1px solid #dfdfe5;
154
- -moz-border-radius: 3px; -webkit-border-radius: 3px;
155
- }
156
- .summary_signature:hover { background: #eeeeff; cursor: pointer; }
157
- #content .summary_signature:hover a:link,
158
- #content .summary_signature:hover a:visited {
159
- background: transparent;
160
- color: #48f;
161
- }
162
-
163
- p.inherited a { font-family: monospace; font-size: 0.9em; }
164
- p.inherited { word-spacing: 5px; font-size: 1.2em; }
165
-
166
- p.children { font-size: 1.2em; }
167
- p.children a { font-size: 0.9em; }
168
- p.children strong { font-size: 0.8em; }
169
- p.children strong.modules { padding-left: 5px; }
170
-
171
- ul.fullTree { display: none; padding-left: 0; list-style: none; margin-left: 0; margin-bottom: 10px; }
172
- ul.fullTree ul { margin-left: 0; padding-left: 0; list-style: none; }
173
- ul.fullTree li { text-align: center; }
174
- ul.fullTree li.next:before { font-size: 1.2em; content: '\2B06'; color: #bbb; display: block; margin-top: 3px; }
175
-
176
- #search { position: absolute; right: 14px; top: 0px; }
177
- #search a:link, #search a:visited {
178
- display: block; float: left; margin-right: 4px;
179
- padding: 8px 10px; text-decoration: none; color: #05a; background: #eaeaff;
180
- border: 1px solid #d8d8e5;
181
- -moz-border-radius-bottomleft: 3px; -moz-border-radius-bottomright: 3px;
182
- -webkit-border-bottom-left-radius: 3px; -webkit-border-bottom-right-radius: 3px;
183
- }
184
- #search a:hover { background: #eef; color: #06b; }
185
- #search a.active {
186
- background: #568; padding-bottom: 20px; color: #fff; border: 1px solid #457;
187
- -moz-border-radius-topleft: 5px; -moz-border-radius-topright: 5px;
188
- -webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px;
189
- }
190
- #search a.inactive { color: #999; }
191
- .inheritanceTree, .toggleDefines { float: right; }
192
-
193
- #menu { font-size: 1.3em; color: #bbb; top: -5px; position: relative; }
194
- #menu .title, #menu a { font-size: 0.7em; }
195
- #menu .title { color: #555; }
196
- #menu a:link, #menu a:visited { color: #333; text-decoration: none; border-bottom: 1px dotted #bbd; }
197
- #menu a:hover { color: #05a; }
198
-
199
- #footer { margin-top: 15px; border-top: 1px solid #ccc; text-align: center; padding: 7px 0; color: #999; }
200
- #footer a:link, #footer a:visited { color: #444; text-decoration: none; border-bottom: 1px dotted #bbd; }
201
- #footer a:hover { color: #05a; }
202
-
203
- #listing ul.alpha { font-size: 1.1em; }
204
- #listing ul.alpha { margin: 0; padding: 0; padding-bottom: 10px; list-style: none; }
205
- #listing ul.alpha li.letter { font-size: 1.4em; padding-bottom: 10px; }
206
- #listing ul.alpha ul { margin: 0; padding: 0; }
207
- #listing ul small { color: #666; font-size: 0.7em; }
208
-
209
- li.r1 { background: #f0f0f0; }
210
- li.r2 { background: #fafafa; }
211
-
212
- #search_frame {
213
- background: #fff;
214
- display: none;
215
- position: absolute;
216
- top: 36px;
217
- right: 18px;
218
- width: 500px;
219
- height: 80%;
220
- overflow-y: scroll;
221
- border: 1px solid #999;
222
- border-collapse: collapse;
223
- -webkit-box-shadow: -2px 5px 25px #aaa;
224
- -moz-box-shadow: -2px 5px 25px #aaa;
225
- -moz-border-radius: 2px;
226
- -webkit-border-radius: 2px;
227
- }
228
-
229
- #content ul.summary li.deprecated a:link,
230
- #content ul.summary li.deprecated a:visited { text-decoration: line-through; font-style: italic; }
231
-
232
- /* syntax highlighting */
233
- .source_code { display: none; padding: 3px 8px; border-left: 8px solid #ddd; margin-top: 5px; }
234
- #filecontents pre.code, .docstring pre.code, .source_code pre { font-family: monospace; }
235
- #filecontents pre.code, .docstring pre.code { display: block; }
236
- .source_code .lines { padding-right: 12px; color: #555; text-align: right; }
237
- #filecontents pre.code, .docstring pre.code,
238
- .tags .example { padding: 5px 12px; margin-top: 4px; border: 1px solid #eef; background: #f5f5ff; }
239
- pre.code { color: #000; }
240
- pre.code .info.file { color: #555; }
241
- pre.code .val { color: #036A07; }
242
- pre.code .tstring_content,
243
- pre.code .heredoc_beg, pre.code .heredoc_end,
244
- pre.code .qwords_beg, pre.code .qwords_end,
245
- pre.code .tstring, pre.code .dstring { color: #036A07; }
246
- pre.code .fid, pre.code .id.new, pre.code .id.to_s,
247
- pre.code .id.to_sym, pre.code .id.to_f,
248
- pre.code .dot + pre.code .id,
249
- pre.code .id.to_i pre.code .id.each { color: #0085FF; }
250
- pre.code .comment { color: #0066FF; }
251
- pre.code .const, pre.code .constant { color: #585CF6; }
252
- pre.code .symbol { color: #C5060B; }
253
- pre.code .kw,
254
- pre.code .label,
255
- pre.code .id.require,
256
- pre.code .id.extend,
257
- pre.code .id.include { color: #0000FF; }
258
- pre.code .ivar { color: #318495; }
259
- pre.code .gvar,
260
- pre.code .id.backref,
261
- pre.code .id.nth_ref { color: #6D79DE; }
262
- pre.code .regexp, .dregexp { color: #036A07; }
263
-
data/doc/file.README.html DELETED
@@ -1,151 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
- <title>Documentation by YARD 0.5.2</title>
7
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
-
10
- <script type="text/javascript" charset="utf-8">
11
- relpath = '';
12
- if (relpath != '') relpath += '/';
13
- </script>
14
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
-
17
- </head>
18
- <body>
19
- <div id="header">
20
- <div id="menu">
21
-
22
- <a href="_index.html" title="Index">Index</a> &raquo;
23
- <span class="title">File: README</span>
24
-
25
- </div>
26
-
27
- <div id="search">
28
- <a id="class_list_link" href="#">Namespace List</a>
29
- <a id="method_list_link" href="#">Method List</a>
30
- <a id ="file_list_link" href="#">File List</a>
31
- </div>
32
-
33
- <div class="clear"></div>
34
- </div>
35
-
36
- <iframe id="search_frame"></iframe>
37
-
38
- <div id="content"><div id='filecontents'><h1>Topsy</h1>
39
-
40
- <p>Simple Ruby wrapper for the <a href="http://topsy.com">Topsy.com</a> Otter API. Topsy is a search engine powered by tweets.</p>
41
-
42
- <h2>Installation</h2>
43
-
44
- <p>Topsy is hosted on Gemcutter, so:</p>
45
-
46
- <pre class="code"><span class='gem identifier id'>gem</span> <span class='install identifier id'>install</span> <span class='gemcutter identifier id'>gemcutter</span> <span class='comment val'># if necessary</span>
47
- <span class='gem identifier id'>gem</span> <span class='tumble identifier id'>tumble</span> <span class='comment val'># if necessary</span>
48
- <span class='sudo identifier id'>sudo</span> <span class='gem identifier id'>gem</span> <span class='install identifier id'>install</span> <span class='topsy identifier id'>topsy</span>
49
- </pre>
50
-
51
- <h2>Usage</h2>
52
-
53
- <pre class="code"><span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='author_info identifier id'>author_info</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com/barackobama'</span><span class='rparen token'>)</span>
54
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Author description=&quot;44th President of the United States&quot; influence_level=10 name=&quot;Barack Obama&quot; nick=&quot;barackobama&quot; topsy_author_url=&quot;http://topsy.com/twitter/barackobama&quot; type=&quot;twitter&quot; url=&quot;http://twitter.com/barackobama&quot;&gt;</span>
55
-
56
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='author_search identifier id'>author_search</span><span class='lparen token'>(</span><span class='string val'>'programming'</span><span class='rparen token'>)</span>
57
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Author descript ... ] page=1 perpage=15 topsy_trackback_url=nil total=97229 window=nil&gt;</span>
58
-
59
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='author_search identifier id'>author_search</span><span class='lparen token'>(</span><span class='string val'>'programming'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>1</span><span class='rparen token'>)</span>
60
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Author description=&quot;Most ... ] page=1 perpage=2 topsy_trackback_url=nil total=100685 window=nil&gt;</span>
61
-
62
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='link_posts identifier id'>link_posts</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com/barackobama'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='rparen token'>)</span>
63
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Linkpost content=&quot;An important reminder ... ] page=2 perpage=2 topsy_trackback_url=nil total=402 window=nil&gt;</span>
64
-
65
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='link_posts identifier id'>link_posts</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com/barackobama'</span><span class='rparen token'>)</span>
66
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Linkpost content=&quot;An important reminder about health reform on the @Whit... ] page=1 perpage=10 topsy_trackback_url=nil total=402 window=nil&gt;</span>
67
-
68
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='link_post_count identifier id'>link_post_count</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com/barackobama'</span><span class='rparen token'>)</span>
69
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::LinkpostCount all=402 contains=0&gt;</span>
70
-
71
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='url_info identifier id'>url_info</span><span class='lparen token'>(</span><span class='string val'>'http://etagwerker.com'</span><span class='rparen token'>)</span>
72
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::UrlInfo description=&quot;&quot; description_attribution=&quot;&quot; oneforty=&quot;just finished installing wordpress in a linux ..&quot; url=&quot;http://etagwerker.com/&quot;&gt; </span>
73
-
74
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='stats identifier id'>stats</span><span class='lparen token'>(</span><span class='string val'>'http://www.google.com'</span><span class='rparen token'>)</span>
75
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Stats all=29869 contains=0 influential=2023 topsy_trackback_url=&quot;http://topsy.com/tb/www.google.com/&quot;&gt;</span>
76
-
77
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='search identifier id'>search</span><span class='lparen token'>(</span><span class='string val'>'rock'</span><span class='rparen token'>)</span>
78
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::LinkSearchResult content=&quot;Why 30 Rock is a Rip-Off of The Muppet Show - http://is.gd/15KJZ&quot; .. ] page=1 perpage=10 topsy_trackback_url=nil total=714429 window=&quot;a&quot;&gt; </span>
79
-
80
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='search identifier id'>search</span><span class='lparen token'>(</span><span class='string val'>'rock'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>3</span><span class='rparen token'>)</span>
81
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::LinkSearchResult content=&quot;Just released! Beatles Rock Band opening cinematic. Amaz ...&quot; ] page=3 perpage=2 topsy_trackback_url=nil total=714429 window=&quot;a&quot;&gt;</span>
82
-
83
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='search identifier id'>search</span><span class='lparen token'>(</span><span class='string val'>'rock'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>3</span><span class='comma token'>,</span> <span class='symbol val'>:window</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'d'</span><span class='rparen token'>)</span>
84
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::LinkSearchResult content=&quot;Be a Google Wave Rock Star http://ff.im/-dPdGL&quot; highlight=&quot;Be a .. &quot;] page=3 perpage=2 topsy_trackback_url=nil total=6064 window=&quot;d&quot;&gt;</span>
85
-
86
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='search_count identifier id'>search_count</span><span class='lparen token'>(</span><span class='string val'>'rock'</span><span class='rparen token'>)</span>
87
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::SearchCounts a=5191790 d=7601 h=206 m=216179 w=45462&gt;</span>
88
-
89
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='profile_search identifier id'>profile_search</span><span class='lparen token'>(</span><span class='string val'>'Hacker+Rubyist'</span><span class='rparen token'>)</span>
90
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Author description=&quot;Hacker; Rubyist; Bit Poet&quot; influence_level=4 name=&quot;Ben Bleythi ...&quot;&gt;] page=1 perpage=10 topsy_trackback_url=nil total=5 window=nil&gt;</span>
91
-
92
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='profile_search identifier id'>profile_search</span><span class='lparen token'>(</span><span class='string val'>'Hacker+Rubyist'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>1</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='rparen token'>)</span>
93
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Author description=&quot;Rubyist, hacker, gamer (video, board and role-playing)... &quot;&gt;] page=2 perpage=1 topsy_trackback_url=nil total=5 window=nil&gt;</span>
94
-
95
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='related identifier id'>related</span><span class='lparen token'>(</span><span class='string val'>'http://www.twitter.com'</span><span class='rparen token'>)</span>
96
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::LinkSearchResult title=&quot;New Twitter Feature: Body Counts | Danger Room ... &quot;&gt;] page=1 perpage=10 topsy_trackback_url=nil total=4458 window=nil&gt;</span>
97
-
98
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='tags identifier id'>tags</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com'</span><span class='rparen token'>)</span>
99
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Tag name=&quot;current&quot; url=&quot;http://topsy.com/s?q=current&quot;&gt;, &lt;#Topsy::Tag name=&quot;twe ... &quot;&gt;] page=1 perpage=10 topsy_trackback_url=nil total=1885 window=nil&gt;</span>
100
-
101
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='trending identifier id'>trending</span>
102
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Trend term=&quot;u s reopens embassy in yemen&quot; url=&quot;http://topsy.com/s?q=u+s%20r ... &quot;&gt;] page=1 perpage=10 topsy_trackback_url=nil total=1434 window=nil&gt;</span>
103
-
104
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='trending identifier id'>trending</span><span class='lparen token'>(</span><span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>3</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='rparen token'>)</span>
105
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Trend term=&quot;droid vs iphone&quot; url=&quot;http://topsy.com/s?q=droid+vs%20iphone&quot; ... &quot;&gt;] page=3 perpage=2 topsy_trackback_url=nil total=1434 window=nil&gt;</span>
106
-
107
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='trackbacks identifier id'>trackbacks</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='rparen token'>)</span>
108
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Tweet author=&lt;#Topsy::Author influence_level=8 name=&quot;tama&quot; photo_url=&quot;http://a3.twimg .. &quot;&gt;] page=2 perpage=2 topsy_trackback_url=&quot;http://topsy.com/tb/twitter.com/&quot; total=39705 window=nil&gt;</span>
109
-
110
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='trackbacks identifier id'>trackbacks</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:contains</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'mashable'</span><span class='rparen token'>)</span>
111
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Tweet author=&lt;#Topsy::Author name=&quot;Hannah Grosvenor&quot; photo_url=&quot;http://a1.t. ... &gt;] page=2 perpage=2 topsy_trackback_url=&quot;http://topsy.com/tb/twitter.com/&quot; total=41 window=nil&gt;</span>
112
-
113
- <span class='comment val'># Fetch search results for the query &quot;gemcutter&quot;</span>
114
- <span class='rshft op'>&gt;&gt;</span> <span class='results identifier id'>results</span> <span class='assign token'>=</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='search identifier id'>search</span><span class='lparen token'>(</span><span class='string val'>&quot;gemcutter&quot;</span><span class='rparen token'>)</span>
115
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::LinkSearchResult content=&quot;New design ... ]&gt;</span>
116
-
117
- <span class='comment val'># Fetch search counts for the query &quot;gemcutter&quot;</span>
118
- <span class='rshft op'>&gt;&gt;</span> <span class='counts identifier id'>counts</span> <span class='assign token'>=</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='search_count identifier id'>search_count</span><span class='lparen token'>(</span><span class='string val'>&quot;gemcutter&quot;</span><span class='rparen token'>)</span>
119
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::SearchCounts a=773 d=6 h=0 m=103 w=24&gt;</span>
120
- <span class='rshft op'>&gt;&gt;</span> <span class='counts identifier id'>counts</span><span class='dot token'>.</span><span class='this_week identifier id'>this_week</span>
121
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>24</span>
122
- </pre>
123
-
124
- <p>Check the <a href="http://yardoc.org/docs/pengwynn-topsy">full gem documentation</a> and <a href="http://code.google.com/p/otterapi/wiki/Resources">API docs</a> for more info.</p>
125
-
126
- <h2>Note on Patches/Pull Requests</h2>
127
-
128
- <ul>
129
- <li>Fork the project.</li>
130
- <li>Make your feature addition or bug fix.</li>
131
- <li>Add tests for it. This is important so I don't break it in a
132
- future version unintentionally.</li>
133
- <li>Commit, do not mess with rakefile, version, or history.
134
- (if you want to have your own version, that is fine but
135
- bump version in a commit by itself I can ignore when I pull)</li>
136
- <li>Send me a pull request. Bonus points for topic branches.</li>
137
- </ul>
138
-
139
-
140
- <h2>Copyright</h2>
141
-
142
- <p>Copyright (c) 2010 <a href="http://wynnnetherland.com">Wynn Netherland</a>. See LICENSE for details.</p></div></div>
143
-
144
- <div id="footer">
145
- Generated on Wed Jan 6 10:31:54 2010 by
146
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
147
- 0.5.2 (ruby-1.8.6).
148
- </div>
149
-
150
- </body>
151
- </html>
data/doc/file_list.html DELETED
@@ -1,29 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html>
4
- <head>
5
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
- <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
7
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
8
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
9
- <script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
10
- <base target="_parent" />
11
- </head>
12
- <body>
13
- <h1 id="full_list_header">File List</h1>
14
- <div id="search">Search: <input type="text" /></div>
15
- <div class="clear"></div>
16
- <ul id="full_list">
17
-
18
-
19
- <li class="r1 ">
20
-
21
- <a href="index.html" title="README">README</a>
22
-
23
-
24
- </li>
25
-
26
- </ul>
27
- </body>
28
- </html>
29
-
data/doc/index.html DELETED
@@ -1,151 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta name="Content-Type" content="text/html; charset=UTF-8" />
6
- <title>Documentation by YARD 0.5.2</title>
7
- <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
8
- <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
9
-
10
- <script type="text/javascript" charset="utf-8">
11
- relpath = '';
12
- if (relpath != '') relpath += '/';
13
- </script>
14
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
15
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
16
-
17
- </head>
18
- <body>
19
- <div id="header">
20
- <div id="menu">
21
-
22
- <a href="_index.html" title="Index">Index</a> &raquo;
23
- <span class="title">File: README</span>
24
-
25
- </div>
26
-
27
- <div id="search">
28
- <a id="class_list_link" href="#">Namespace List</a>
29
- <a id="method_list_link" href="#">Method List</a>
30
- <a id ="file_list_link" href="#">File List</a>
31
- </div>
32
-
33
- <div class="clear"></div>
34
- </div>
35
-
36
- <iframe id="search_frame"></iframe>
37
-
38
- <div id="content"><div id='filecontents'><h1>Topsy</h1>
39
-
40
- <p>Simple Ruby wrapper for the <a href="http://topsy.com">Topsy.com</a> Otter API. Topsy is a search engine powered by tweets.</p>
41
-
42
- <h2>Installation</h2>
43
-
44
- <p>Topsy is hosted on Gemcutter, so:</p>
45
-
46
- <pre class="code"><span class='gem identifier id'>gem</span> <span class='install identifier id'>install</span> <span class='gemcutter identifier id'>gemcutter</span> <span class='comment val'># if necessary</span>
47
- <span class='gem identifier id'>gem</span> <span class='tumble identifier id'>tumble</span> <span class='comment val'># if necessary</span>
48
- <span class='sudo identifier id'>sudo</span> <span class='gem identifier id'>gem</span> <span class='install identifier id'>install</span> <span class='topsy identifier id'>topsy</span>
49
- </pre>
50
-
51
- <h2>Usage</h2>
52
-
53
- <pre class="code"><span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='author_info identifier id'>author_info</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com/barackobama'</span><span class='rparen token'>)</span>
54
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Author description=&quot;44th President of the United States&quot; influence_level=10 name=&quot;Barack Obama&quot; nick=&quot;barackobama&quot; topsy_author_url=&quot;http://topsy.com/twitter/barackobama&quot; type=&quot;twitter&quot; url=&quot;http://twitter.com/barackobama&quot;&gt;</span>
55
-
56
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='author_search identifier id'>author_search</span><span class='lparen token'>(</span><span class='string val'>'programming'</span><span class='rparen token'>)</span>
57
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Author descript ... ] page=1 perpage=15 topsy_trackback_url=nil total=97229 window=nil&gt;</span>
58
-
59
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='author_search identifier id'>author_search</span><span class='lparen token'>(</span><span class='string val'>'programming'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>1</span><span class='rparen token'>)</span>
60
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Author description=&quot;Most ... ] page=1 perpage=2 topsy_trackback_url=nil total=100685 window=nil&gt;</span>
61
-
62
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='link_posts identifier id'>link_posts</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com/barackobama'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='rparen token'>)</span>
63
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Linkpost content=&quot;An important reminder ... ] page=2 perpage=2 topsy_trackback_url=nil total=402 window=nil&gt;</span>
64
-
65
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='link_posts identifier id'>link_posts</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com/barackobama'</span><span class='rparen token'>)</span>
66
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Linkpost content=&quot;An important reminder about health reform on the @Whit... ] page=1 perpage=10 topsy_trackback_url=nil total=402 window=nil&gt;</span>
67
-
68
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='link_post_count identifier id'>link_post_count</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com/barackobama'</span><span class='rparen token'>)</span>
69
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::LinkpostCount all=402 contains=0&gt;</span>
70
-
71
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='url_info identifier id'>url_info</span><span class='lparen token'>(</span><span class='string val'>'http://etagwerker.com'</span><span class='rparen token'>)</span>
72
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::UrlInfo description=&quot;&quot; description_attribution=&quot;&quot; oneforty=&quot;just finished installing wordpress in a linux ..&quot; url=&quot;http://etagwerker.com/&quot;&gt; </span>
73
-
74
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='stats identifier id'>stats</span><span class='lparen token'>(</span><span class='string val'>'http://www.google.com'</span><span class='rparen token'>)</span>
75
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Stats all=29869 contains=0 influential=2023 topsy_trackback_url=&quot;http://topsy.com/tb/www.google.com/&quot;&gt;</span>
76
-
77
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='search identifier id'>search</span><span class='lparen token'>(</span><span class='string val'>'rock'</span><span class='rparen token'>)</span>
78
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::LinkSearchResult content=&quot;Why 30 Rock is a Rip-Off of The Muppet Show - http://is.gd/15KJZ&quot; .. ] page=1 perpage=10 topsy_trackback_url=nil total=714429 window=&quot;a&quot;&gt; </span>
79
-
80
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='search identifier id'>search</span><span class='lparen token'>(</span><span class='string val'>'rock'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>3</span><span class='rparen token'>)</span>
81
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::LinkSearchResult content=&quot;Just released! Beatles Rock Band opening cinematic. Amaz ...&quot; ] page=3 perpage=2 topsy_trackback_url=nil total=714429 window=&quot;a&quot;&gt;</span>
82
-
83
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='search identifier id'>search</span><span class='lparen token'>(</span><span class='string val'>'rock'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>3</span><span class='comma token'>,</span> <span class='symbol val'>:window</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'d'</span><span class='rparen token'>)</span>
84
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::LinkSearchResult content=&quot;Be a Google Wave Rock Star http://ff.im/-dPdGL&quot; highlight=&quot;Be a .. &quot;] page=3 perpage=2 topsy_trackback_url=nil total=6064 window=&quot;d&quot;&gt;</span>
85
-
86
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='search_count identifier id'>search_count</span><span class='lparen token'>(</span><span class='string val'>'rock'</span><span class='rparen token'>)</span>
87
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::SearchCounts a=5191790 d=7601 h=206 m=216179 w=45462&gt;</span>
88
-
89
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='profile_search identifier id'>profile_search</span><span class='lparen token'>(</span><span class='string val'>'Hacker+Rubyist'</span><span class='rparen token'>)</span>
90
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Author description=&quot;Hacker; Rubyist; Bit Poet&quot; influence_level=4 name=&quot;Ben Bleythi ...&quot;&gt;] page=1 perpage=10 topsy_trackback_url=nil total=5 window=nil&gt;</span>
91
-
92
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='profile_search identifier id'>profile_search</span><span class='lparen token'>(</span><span class='string val'>'Hacker+Rubyist'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>1</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='rparen token'>)</span>
93
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Author description=&quot;Rubyist, hacker, gamer (video, board and role-playing)... &quot;&gt;] page=2 perpage=1 topsy_trackback_url=nil total=5 window=nil&gt;</span>
94
-
95
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='related identifier id'>related</span><span class='lparen token'>(</span><span class='string val'>'http://www.twitter.com'</span><span class='rparen token'>)</span>
96
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::LinkSearchResult title=&quot;New Twitter Feature: Body Counts | Danger Room ... &quot;&gt;] page=1 perpage=10 topsy_trackback_url=nil total=4458 window=nil&gt;</span>
97
-
98
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='tags identifier id'>tags</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com'</span><span class='rparen token'>)</span>
99
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Tag name=&quot;current&quot; url=&quot;http://topsy.com/s?q=current&quot;&gt;, &lt;#Topsy::Tag name=&quot;twe ... &quot;&gt;] page=1 perpage=10 topsy_trackback_url=nil total=1885 window=nil&gt;</span>
100
-
101
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='trending identifier id'>trending</span>
102
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Trend term=&quot;u s reopens embassy in yemen&quot; url=&quot;http://topsy.com/s?q=u+s%20r ... &quot;&gt;] page=1 perpage=10 topsy_trackback_url=nil total=1434 window=nil&gt;</span>
103
-
104
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='trending identifier id'>trending</span><span class='lparen token'>(</span><span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>3</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='rparen token'>)</span>
105
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Trend term=&quot;droid vs iphone&quot; url=&quot;http://topsy.com/s?q=droid+vs%20iphone&quot; ... &quot;&gt;] page=3 perpage=2 topsy_trackback_url=nil total=1434 window=nil&gt;</span>
106
-
107
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='trackbacks identifier id'>trackbacks</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='rparen token'>)</span>
108
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Tweet author=&lt;#Topsy::Author influence_level=8 name=&quot;tama&quot; photo_url=&quot;http://a3.twimg .. &quot;&gt;] page=2 perpage=2 topsy_trackback_url=&quot;http://topsy.com/tb/twitter.com/&quot; total=39705 window=nil&gt;</span>
109
-
110
- <span class='rshft op'>&gt;&gt;</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='trackbacks identifier id'>trackbacks</span><span class='lparen token'>(</span><span class='string val'>'http://twitter.com'</span><span class='comma token'>,</span> <span class='symbol val'>:perpage</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:page</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>2</span><span class='comma token'>,</span> <span class='symbol val'>:contains</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'mashable'</span><span class='rparen token'>)</span>
111
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::Tweet author=&lt;#Topsy::Author name=&quot;Hannah Grosvenor&quot; photo_url=&quot;http://a1.t. ... &gt;] page=2 perpage=2 topsy_trackback_url=&quot;http://topsy.com/tb/twitter.com/&quot; total=41 window=nil&gt;</span>
112
-
113
- <span class='comment val'># Fetch search results for the query &quot;gemcutter&quot;</span>
114
- <span class='rshft op'>&gt;&gt;</span> <span class='results identifier id'>results</span> <span class='assign token'>=</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='search identifier id'>search</span><span class='lparen token'>(</span><span class='string val'>&quot;gemcutter&quot;</span><span class='rparen token'>)</span>
115
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::Page list=[&lt;#Topsy::LinkSearchResult content=&quot;New design ... ]&gt;</span>
116
-
117
- <span class='comment val'># Fetch search counts for the query &quot;gemcutter&quot;</span>
118
- <span class='rshft op'>&gt;&gt;</span> <span class='counts identifier id'>counts</span> <span class='assign token'>=</span> <span class='Topsy constant id'>Topsy</span><span class='dot token'>.</span><span class='search_count identifier id'>search_count</span><span class='lparen token'>(</span><span class='string val'>&quot;gemcutter&quot;</span><span class='rparen token'>)</span>
119
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='lt op'>&lt;</span><span class='comment val'>#Topsy::SearchCounts a=773 d=6 h=0 m=103 w=24&gt;</span>
120
- <span class='rshft op'>&gt;&gt;</span> <span class='counts identifier id'>counts</span><span class='dot token'>.</span><span class='this_week identifier id'>this_week</span>
121
- <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='integer val'>24</span>
122
- </pre>
123
-
124
- <p>Check the <a href="http://yardoc.org/docs/pengwynn-topsy">full gem documentation</a> and <a href="http://code.google.com/p/otterapi/wiki/Resources">API docs</a> for more info.</p>
125
-
126
- <h2>Note on Patches/Pull Requests</h2>
127
-
128
- <ul>
129
- <li>Fork the project.</li>
130
- <li>Make your feature addition or bug fix.</li>
131
- <li>Add tests for it. This is important so I don't break it in a
132
- future version unintentionally.</li>
133
- <li>Commit, do not mess with rakefile, version, or history.
134
- (if you want to have your own version, that is fine but
135
- bump version in a commit by itself I can ignore when I pull)</li>
136
- <li>Send me a pull request. Bonus points for topic branches.</li>
137
- </ul>
138
-
139
-
140
- <h2>Copyright</h2>
141
-
142
- <p>Copyright (c) 2010 <a href="http://wynnnetherland.com">Wynn Netherland</a>. See LICENSE for details.</p></div></div>
143
-
144
- <div id="footer">
145
- Generated on Wed Jan 6 10:31:54 2010 by
146
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
147
- 0.5.2 (ruby-1.8.6).
148
- </div>
149
-
150
- </body>
151
- </html>