51 |
54 |
55 |
Statistics generated on <%= Time.now.strftime("%A %d %B %Y - %T") %>
56 |
Total number of tweets: <%= counters[:tweets] %> (<%= counters[:retweets_percentage] %>% retweets)
57 |
58 |
Most active times
59 |
What time do you tweet the most?
60 |
61 |
62 | <% times_of_day.each_with_index do |time, index| %>
63 |
64 | <%= time[:percentage] %>%
65 | <% if time[:size] > 0 %>
66 |
67 | |
70 | <% end %>
71 |
72 |
73 | <% times_of_day.each_with_index do |time, index| %>
74 | | <%= index %> |
75 | <% end %>
76 |
77 |
78 |
79 | <% if mentions[:enabled] %>
80 |
Most mentioned users
81 |
With this, you can see the people you mentioned most in your Twitter time!
82 |
83 |
84 |
85 | | |
86 | Username |
87 | Times Mentioned |
88 | Example |
89 |
90 |
91 |
92 | <% mentions[:top].each_with_index do |user, index| %>
93 |
94 | | <%= index + 1 %>. |
95 | @<%= user[:name] %> |
96 | <%= user[:count] %> |
97 | <%= user[:example][:text] %> |
98 |
99 | <% end %>
100 |
101 |
102 | <% if mentions[:nottop].length > 0 %>
103 |
These didn't make it to the top…
104 |
105 |
106 | <% mentions[:nottop].each_with_index do |user, index| %>
107 | | @<%= user[:name] %> <%= user[:count] %> |
108 | <% if index % 5 == 4 %>
109 |
110 |
111 | <% end %>
112 | <% end %>
113 |
114 |
115 | <% end %>
116 | <% end %>
117 |
118 | <% if clients[:enabled] %>
119 |
Most used clients
120 |
What is/was your favorite and most used client? Find it out right here!
121 |
122 |
123 |
124 | | |
125 | Client |
126 | Times Used |
127 | Percentage (% of total) |
128 |
129 |
130 |
131 | <% clients[:top].each_with_index do |client, index| %>
132 |
133 | | <%= index + 1 %>. |
134 | <%= client[:name] %> |
135 | <%= client[:count] %> |
136 | <%= client[:percentage] %>% |
137 |
138 | <% end %>
139 |
140 |
141 | <% if clients[:nottop].length > 0 %>
142 |
These didn't make it to the top…
143 |
144 |
145 | <% clients[:nottop].each_with_index do |client, index| %>
146 | | <%= client[:name] %> <%= client[:count] %> |
147 | <% if index % 5 == 4 %>
148 |
149 |
150 | <% end %>
151 | <% end %>
152 |
153 |
154 | <% end %>
155 | <% end %>
156 |
157 | <% if smileys[:enabled] %>
158 |
Most used smileys :^)
159 |
;-)
160 |
161 |
162 |
163 | | |
164 | Smiley |
165 | Times Used |
166 | Example |
167 |
168 |
169 |
170 | <% smileys[:top].each_with_index do |smiley, index| %>
171 |
172 | | <%= index + 1 %>. |
173 | <%= smiley[:smiley] %> |
174 | <%= smiley[:count] %> |
175 | <%= smiley[:example][:text] %> |
176 |
177 | <% end %>
178 |
179 |
180 | <% if smileys[:nottop].length > 0 %>
181 |
These didn't make it to the top… ;_;
182 |
183 |
184 | <% smileys[:nottop].each_with_index do |smiley, index| %>
185 | | <%= smiley[:smiley] %> <%= smiley[:count] %> |
186 | <% if index % 5 == 4 %>
187 |
188 |
189 | <% end %>
190 | <% end %>
191 |
192 |
193 | <% end %>
194 | <% end %>
195 |
196 | <% if hashtags[:enabled] %>
197 |
Most used hashtags
198 |
What were you talking about on Twitter most? (Or you simply spammed/overused those hashtags)
199 |
200 |
201 |
202 | | |
203 | Hashtag |
204 | Times Used |
205 | Example |
206 |
207 |
208 |
209 | <% hashtags[:top].each_with_index do |hashtag, index| %>
210 |
211 | | <%= index + 1 %>. |
212 | #<%= hashtag[:hashtag] %> |
213 | <%= hashtag[:count] %> |
214 | <%= hashtag[:example][:text] %> |
215 |
216 | <% end %>
217 |
218 |
219 | <% if hashtags[:nottop].length > 0 %>
220 |
These didn't make it to the top…
221 |
222 |
223 | <% hashtags[:nottop].each_with_index do |hashtag, index| %>
224 | | #<%= hashtag[:hashtag] %> <%= hashtag[:count] %> |
225 | <% if index % 5 == 4 %>
226 |
227 |
228 | <% end %>
229 | <% end %>
230 |
231 |
232 | <% end %>
233 | <% end %>
234 |
235 |
236 | Stats generated using <%= Empyrean::VERSION_STR %>
237 | Empyrean © <%= (2014..Time.now.strftime("%Y").to_i).to_a * ", " %> nilsding, pixeldesu
238 |
239 |
240 |
241 |
242 |
--------------------------------------------------------------------------------
/lib/empyrean/tweetparser.rb:
--------------------------------------------------------------------------------
1 | # tweetparser.rb - parses tweets
2 | #
3 | # This file is part of Empyrean
4 | # Copyright (C) 2015 nilsding, pixeldesu
5 | #
6 | # This program is free software: you can redistribute it and/or modify
7 | # it under the terms of the GNU General Public License as published by
8 | # the Free Software Foundation, either version 3 of the License, or
9 | # (at your option) any later version.
10 | #
11 | # This program is distributed in the hope that it will be useful,
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | # GNU General Public License for more details.
15 | #
16 | # You should have received a copy of the GNU General Public License
17 | # along with this program. If not, see
228 |
229 |
Twitter Stats
230 |
231 | Statistics generated on <%= Time.now.strftime("%A %d %B %Y - %T") %>
232 | Total number of tweets: <%= counters[:tweets] %> (<%= counters[:retweets_percentage] %>% retweets)
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 | | Most active times |
241 |
242 |
243 | |
244 |
245 |
246 |
247 |
248 |
249 | <% times_of_day.each_with_index do |time, index| %>
250 | <%= time[:percentage] %>%<% if time[:size] > 0 %> <% end %> |
251 | <% end %>
252 |
253 | <% times_of_day.each_with_index do |time, index| %>
254 | | <%= index %> |
255 | <% end %>
256 |
257 |
258 |
259 | <% if mentions[:enabled] %>
260 |
261 |
262 |
263 |
264 |
265 | | Most mentioned users |
266 |
267 |
268 | |
269 |
270 |
271 |
272 |
273 |
274 | | |
275 | User |
276 | How often? |
277 | Random quote |
278 |
279 | <% mentions[:top].each_with_index do |user, index| %>
280 |
281 | | <%= index + 1 %> |
282 | @<%= user[:name] %> |
283 | <%= user[:count] %> |
284 | "<%= user[:example][:text] %>" → |
285 |
286 | <% end %>
287 |
288 |
289 | <% if mentions[:nottop].length > 0 %>
These didn't make it to the top:
290 | <% mentions[:nottop].each_with_index do |user, index| %>
291 | | @<%= user[:name] %> (<%= user[:count] %>) |
292 | <% if index % 5 == 4 %>
293 |
294 |
295 | <% end %>
296 | <% end %>
297 |
298 |
299 |
300 | <% end %>
301 | <% end %>
302 | <% if clients[:enabled] %>
303 |
304 |
305 |
306 |
307 |
308 | | Most used clients |
309 |
310 |
311 | |
312 |
313 |
314 |
315 |
316 |
317 | | |
318 | Client |
319 | Times used |
320 | Percentage |
321 |
322 | <% clients[:top].each_with_index do |client, index| %>
323 |
324 | | <%= index + 1 %> |
325 | <%= client[:name] %> |
326 | <%= client[:count] %> |
327 | <%= client[:percentage] %>% |
328 |
329 | <% end %>
330 |
331 |
332 | <% if clients[:nottop].length > 0 %>
These didn't make it to the top:
333 | <% clients[:nottop].each_with_index do |client, index| %>
334 | | <%= client[:name] %> (<%= client[:count] %>) |
335 | <% if index % 5 == 4 %>
336 |
337 |
338 | <% end %>
339 | <% end %>
340 |
341 |
342 |
343 | <% end %>
344 | <% end %>
345 |
346 | <% if smileys[:enabled] %>
347 |
348 |
349 |
350 |
351 |
352 | | Most used smileys :^) |
353 |
354 |
355 | |
356 |
357 |
358 |
359 |
360 |
361 | | |
362 | Smiley |
363 | Times used |
364 | Random quote |
365 |
366 | <% smileys[:top].each_with_index do |smiley, index| %>
367 |
368 | | <%= index + 1 %> |
369 | <%= smiley[:smiley] %> |
370 | <%= smiley[:count] %> |
371 | "<%= smiley[:example][:text] %>" → |
372 |
373 | <% end %>
374 |
375 |
376 | <% if smileys[:nottop].length > 0 %>
These didn't make it to the top ;_;
377 | <% smileys[:nottop].each_with_index do |smiley, index| %>
378 | | <%= smiley[:smiley] %> (<%= smiley[:count] %>) |
379 | <% if index % 5 == 4 %>
380 |
381 |
382 | <% end %>
383 | <% end %>
384 |
385 |
386 |
387 | <% end %>
388 | <% end %>
389 |
390 | <% if hashtags[:enabled] %>
391 |
392 |
393 |
394 |
395 |
396 | | Most used hashtags |
397 |
398 |
399 | |
400 |
401 |
402 |
403 |
404 |
405 | | |
406 | Hashtag |
407 | Times used |
408 | Random quote |
409 |
410 | <% hashtags[:top].each_with_index do |hashtag, index| %>
411 |
412 | | <%= index + 1 %> |
413 | #<%= hashtag[:hashtag] %> |
414 | <%= hashtag[:count] %> |
415 | "<%= hashtag[:example][:text] %>" → |
416 |
417 | <% end %>
418 |
419 |
420 | <% if hashtags[:nottop].length > 0 %>
These didn't make it to the top:
421 | <% hashtags[:nottop].each_with_index do |hashtag, index| %>
422 | | #<%= hashtag[:hashtag] %> (<%= hashtag[:count] %>) |
423 | <% if index % 5 == 4 %>
424 |
425 |
426 | <% end %>
427 | <% end %>
428 |
429 |
430 |
431 | <% end %>
432 | <% end %>
433 |
434 |
435 | Stats generated using <%= Empyrean::VERSION_STR %>
436 | Empyrean © <%= (2014..Time.now.strftime("%Y").to_i).to_a * ", " %> nilsding, pixeldesu
437 |
438 |
439 |
440 |
441 |
442 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.