animenewsnetwork 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  require "animenewsnetwork/version"
2
2
  require "animenewsnetwork/encyclopedia"
3
+ require "animenewsnetwork/encyclopedia/reports"
3
4
 
4
5
  module AnimeNewsNetwork
5
6
  # Your code goes here...
@@ -11,10 +11,12 @@ class AnimeNewsNetwork::Encyclopedia
11
11
  def get_reports(args = {})
12
12
  validator = DataValidator::Validator.new(
13
13
  args, {
14
- id: { presence: true, numericality: { only_integer: true } },
15
- type: { presence: true, inclusion: { in: %w(anime manga) } },
16
- nskip: { allow_nil: true, numericality: { only_integer: true } },
17
- nlist: { allow_nil: true, format: { with: /^(\d+|all)$/ } },
14
+ id: { presence: true, numericality: { only_integer: true } },
15
+ type: { allow_nil: true, inclusion: { in: %w(anime manga) } },
16
+ name: { allow_nil: true },
17
+ search: { allow_nil: true },
18
+ nskip: { allow_nil: true, numericality: { only_integer: true } },
19
+ nlist: { allow_nil: true, format: { with: /^(\d+|all)$/ } },
18
20
  }
19
21
  )
20
22
  raise ArgumentError, validator.errors unless validator.valid?
@@ -0,0 +1,70 @@
1
+ class AnimeNewsNetwork::Encyclopedia::Reports
2
+ CONFIG = {
3
+ anime_list: { id: 155, type: 'anime' },
4
+ anime_series_length: { id: 177 },
5
+ anime_ratings: { id: 172 },
6
+ anime_added_recently: { id: 148 },
7
+ }
8
+
9
+ def initialize()
10
+ @ann = AnimeNewsNetwork::Encyclopedia.new
11
+ end
12
+
13
+ def anime_series_length(args = {})
14
+ params = args.merge(CONFIG[:anime_series_length])
15
+ xml = @ann.get_reports(params)
16
+ xml.xpath('//item').map do |item|
17
+ data = {}
18
+ anime = item.xpath('anime')[0]
19
+ data[:id] = anime['href'].match(/id=(\d+)/) { $1.to_i }
20
+ data[:title] = anime.text
21
+ data[:episodes] = item.xpath('nb_episodes')[0].text.to_i
22
+ data[:start_date], data[:end_date] =
23
+ item.xpath('production_date')[0].text.match(/([\d\-]+) to ([\d\-]+)/) { [$1, $2] }
24
+ data
25
+ end
26
+ end
27
+
28
+ def anime_list(args = {})
29
+ params = args.merge(CONFIG[:anime_list])
30
+ xml = @ann.get_reports(params)
31
+ xml.xpath('//item').map do |item|
32
+ data = {}
33
+ data[:id] = item.xpath('id').text.to_i
34
+ data[:gid] = item.xpath('gid').text.to_i
35
+ data[:name] = item.xpath('name').text
36
+ data[:type] = item.xpath('type').text
37
+ data
38
+ end
39
+ end
40
+
41
+ def anime_ratings(args = {})
42
+ params = args.merge(CONFIG[:anime_ratings])
43
+ xml = @ann.get_reports(params)
44
+ xml.xpath('//item').map do |item|
45
+ data = {}
46
+ anime = item.xpath('anime')[0]
47
+ data[:id] = anime['href'].match(/id=(\d+)/) { $1.to_i }
48
+ data[:title] = anime.text
49
+ data[:nb_votes] = item.xpath('nb_votes')[0].text.to_i
50
+ data[:nb_seen] = item.xpath('nb_seen')[0].text.to_i
51
+ data[:straight_average] = item.xpath('straight_average')[0].text.to_f
52
+ data[:weighted_average] = item.xpath('weighted_average')[0].text.to_f
53
+ data[:bayesian_average] = item.xpath('bayesian_average')[0].text.to_f
54
+ data
55
+ end
56
+ end
57
+
58
+ def anime_added_recently(args = {})
59
+ params = args.merge(CONFIG[:anime_added_recently])
60
+ xml = @ann.get_reports(params)
61
+ xml.xpath('//item').map do |item|
62
+ data = {}
63
+ anime = item.xpath('anime')[0]
64
+ data[:id] = anime['href'].match(/id=(\d+)/) { $1.to_i }
65
+ data[:title] = anime.text
66
+ data[:date_added] = item.xpath('date_added')[0].text
67
+ data
68
+ end
69
+ end
70
+ end
@@ -1,3 +1,3 @@
1
1
  module AnimeNewsNetwork
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -0,0 +1,51 @@
1
+ <report skipped="0" listed="50">
2
+ <item><anime href="/encyclopedia/anime.php?id=15359">Arpeggio of Blue Steel (TV)</anime><date_added>2013-05-29 14:29:49</date_added></item>
3
+ <item><anime href="/encyclopedia/anime.php?id=15357">Space Battleship Yamato 2199 Chapter 6: Tōtatsu! Dai Magellan (movie)</anime><date_added>2013-05-29 13:40:17</date_added></item>
4
+ <item><anime href="/encyclopedia/anime.php?id=15353">Kaiji 2 - Jinsei Dakkai Game (live-action movie)</anime><date_added>2013-05-28 04:04:31</date_added></item>
5
+ <item><anime href="/encyclopedia/anime.php?id=15352">Kaiji: The Ultimate Gambler (live-action movie)</anime><date_added>2013-05-27 23:41:45</date_added></item>
6
+ <item><anime href="/encyclopedia/anime.php?id=15351">Boku no Hatsukoi o Kimi ni Sasagu (live-action movie)</anime><date_added>2013-05-27 23:17:41</date_added></item>
7
+ <item><anime href="/encyclopedia/anime.php?id=15350">K (movie)</anime><date_added>2013-05-27 23:11:13</date_added></item>
8
+ <item><anime href="/encyclopedia/anime.php?id=15349">Nisekoi (TV)</anime><date_added>2013-05-27 23:04:34</date_added></item>
9
+ <item><anime href="/encyclopedia/anime.php?id=15347">Outbreak Company (TV)</anime><date_added>2013-05-24 16:43:43</date_added></item>
10
+ <item><anime href="/encyclopedia/anime.php?id=15346">Wizard of Oz (movie)</anime><date_added>2013-05-21 05:33:26</date_added></item>
11
+ <item><anime href="/encyclopedia/anime.php?id=15345">Mobile Suit Gundam AGE Memory of Eden (OAV)</anime><date_added>2013-05-20 18:55:18</date_added></item>
12
+ <item><anime href="/encyclopedia/anime.php?id=15344">BlazBlue Alter Memory (TV)</anime><date_added>2013-05-19 14:26:07</date_added></item>
13
+ <item><anime href="/encyclopedia/anime.php?id=15339">Kitakubu Katsudō Kiroku (TV)</anime><date_added>2013-05-09 15:08:55</date_added></item>
14
+ <item><anime href="/encyclopedia/anime.php?id=15337">Ace of Diamond (TV)</anime><date_added>2013-05-09 14:51:48</date_added></item>
15
+ <item><anime href="/encyclopedia/anime.php?id=15336">Kill la Kill (TV)</anime><date_added>2013-05-08 14:02:15</date_added></item>
16
+ <item><anime href="/encyclopedia/anime.php?id=15335">Maken-Ki! Two (TV)</anime><date_added>2013-05-08 13:54:06</date_added></item>
17
+ <item><anime href="/encyclopedia/anime.php?id=15334">World God Only Knows: Goddesses Arc (TV)</anime><date_added>2013-05-03 16:40:35</date_added></item>
18
+ <item><anime href="/encyclopedia/anime.php?id=15333">Buddha 2: Tezuka Osamu no Buddha ~Owarinaki Tabi~ (movie)</anime><date_added>2013-05-03 16:31:27</date_added></item>
19
+ <item><anime href="/encyclopedia/anime.php?id=15332">Abashiri Ikka The Movie (live-action movie)</anime><date_added>2013-05-02 23:31:11</date_added></item>
20
+ <item><anime href="/encyclopedia/anime.php?id=15331">Inazuma Eleven GO Galaxy (TV)</anime><date_added>2013-05-02 01:00:32</date_added></item>
21
+ <item><anime href="/encyclopedia/anime.php?id=15327">Panty &amp; Stocking in Sanitarybox (OAV)</anime><date_added>2013-05-01 19:13:58</date_added></item>
22
+ <item><anime href="/encyclopedia/anime.php?id=15326">Golgo 13 (live-action movie)</anime><date_added>2013-05-01 18:54:15</date_added></item>
23
+ <item><anime href="/encyclopedia/anime.php?id=15325">Visitor (special)</anime><date_added>2013-05-01 16:19:48</date_added></item>
24
+ <item><anime href="/encyclopedia/anime.php?id=15324">Gurren Lagann Parallel Works 2 (OAV)</anime><date_added>2013-05-01 11:08:34</date_added></item>
25
+ <item><anime href="/encyclopedia/anime.php?id=15323">Gurren Lagann Parallel Works (OAV)</anime><date_added>2013-05-01 11:08:26</date_added></item>
26
+ <item><anime href="/encyclopedia/anime.php?id=15322">Aesop Dōwa (OAV)</anime><date_added>2013-05-01 09:37:57</date_added></item>
27
+ <item><anime href="/encyclopedia/anime.php?id=15321">Be-yond (OAV)</anime><date_added>2013-04-30 23:47:43</date_added></item>
28
+ <item><anime href="/encyclopedia/anime.php?id=15320">Coffee Samurai (OAV)</anime><date_added>2013-04-30 23:11:21</date_added></item>
29
+ <item><anime href="/encyclopedia/anime.php?id=15319">Lupin Sansei: Lupin Ikka Seizoroi (OAV)</anime><date_added>2013-04-30 22:18:55</date_added></item>
30
+ <item><anime href="/encyclopedia/anime.php?id=15318">Beck (live-action movie)</anime><date_added>2013-04-30 12:04:01</date_added></item>
31
+ <item><anime href="/encyclopedia/anime.php?id=15317">Wake in Garakuta Town (OAV)</anime><date_added>2013-04-30 06:27:52</date_added></item>
32
+ <item><anime href="/encyclopedia/anime.php?id=15316">Hanbun no Tsuki ga Noboru Sora (live-action movie)</anime><date_added>2013-04-30 05:52:28</date_added></item>
33
+ <item><anime href="/encyclopedia/anime.php?id=15315">Solanin (live-action movie)</anime><date_added>2013-04-30 04:46:29</date_added></item>
34
+ <item><anime href="/encyclopedia/anime.php?id=15314">D.C.I.F. Da Capo If (OAV)</anime><date_added>2013-04-29 19:10:44</date_added></item>
35
+ <item><anime href="/encyclopedia/anime.php?id=15313">Air Doll (live-action movie)</anime><date_added>2013-04-29 16:17:21</date_added></item>
36
+ <item><anime href="/encyclopedia/anime.php?id=15311">Happily Ever After (live-action movie)</anime><date_added>2013-04-29 15:42:22</date_added></item>
37
+ <item><anime href="/encyclopedia/anime.php?id=15307">MW (live-action movie)</anime><date_added>2013-04-29 12:08:11</date_added></item>
38
+ <item><anime href="/encyclopedia/anime.php?id=15306">Super Street Fighter IV (OAV)</anime><date_added>2013-04-29 12:03:29</date_added></item>
39
+ <item><anime href="/encyclopedia/anime.php?id=15305">Sonic: Night of the Werehog (special)</anime><date_added>2013-04-29 11:50:26</date_added></item>
40
+ <item><anime href="/encyclopedia/anime.php?id=15304">Street Fighter II: Yomigaeru Fujiwara-kyō - Toki o Kaketa Fighter-tachi (special)</anime><date_added>2013-04-29 11:30:31</date_added></item>
41
+ <item><anime href="/encyclopedia/anime.php?id=15303">Liar Game: Reborn (live-action movie)</anime><date_added>2013-04-29 10:57:42</date_added></item>
42
+ <item><anime href="/encyclopedia/anime.php?id=15302">Liar Game: The Final Stage (live-action movie)</anime><date_added>2013-04-29 10:52:35</date_added></item>
43
+ <item><anime href="/encyclopedia/anime.php?id=15301">Liar Game X (live-action ONA)</anime><date_added>2013-04-29 10:49:53</date_added></item>
44
+ <item><anime href="/encyclopedia/anime.php?id=15300">Liar Game: Episode Zero (live-action ONA)</anime><date_added>2013-04-29 10:46:02</date_added></item>
45
+ <item><anime href="/encyclopedia/anime.php?id=15299">Liar Game (live-action TV 2)</anime><date_added>2013-04-29 10:34:10</date_added></item>
46
+ <item><anime href="/encyclopedia/anime.php?id=15298">Liar Game (live-action TV)</anime><date_added>2013-04-29 10:30:55</date_added></item>
47
+ <item><anime href="/encyclopedia/anime.php?id=15297">Transformers: Robot Masters (OAV)</anime><date_added>2013-04-29 09:25:09</date_added></item>
48
+ <item><anime href="/encyclopedia/anime.php?id=15296">Higanjima: Escape From Vampire Island (live-action movie)</anime><date_added>2013-04-28 23:13:03</date_added></item>
49
+ <item><anime href="/encyclopedia/anime.php?id=15295">Senyū. Dai 2 Ki (TV)</anime><date_added>2013-04-28 22:59:33</date_added></item>
50
+ <item><anime href="/encyclopedia/anime.php?id=15294">Un-Go episode:0 Inga-ron (movie)</anime><date_added>2013-04-28 22:54:29</date_added></item>
51
+ <item><anime href="/encyclopedia/anime.php?id=15293">Superflat First Love (movie)</anime><date_added>2013-04-28 22:48:46</date_added></item></report>
@@ -0,0 +1,51 @@
1
+ <report skipped="0" listed="50">
2
+ <item id="11770"><anime href="/encyclopedia/anime.php?id=11770">Steins;Gate (TV)</anime><nb_votes>2733</nb_votes><nb_seen>3903</nb_seen><straight_average>9.230199813842773</straight_average><weighted_average>9.122900009155273</weighted_average><bayesian_average>9.116583824157715</bayesian_average></item>
3
+ <item id="9701"><anime href="/encyclopedia/anime.php?id=9701">Clannad After Story (TV)</anime><nb_votes>4312</nb_votes><nb_seen>6788</nb_seen><straight_average>8.994000434875488</straight_average><weighted_average>9.099699974060059</weighted_average><bayesian_average>9.095749855041504</bayesian_average></item>
4
+ <item id="10216"><anime href="/encyclopedia/anime.php?id=10216">Fullmetal Alchemist: Brotherhood (TV)</anime><nb_votes>4197</nb_votes><nb_seen>7857</nb_seen><straight_average>9.124899864196777</straight_average><weighted_average>9.099100112915039</weighted_average><bayesian_average>9.095043182373047</bayesian_average></item>
5
+ <item id="210"><anime href="/encyclopedia/anime.php?id=210">Rurouni Kenshin: Trust &amp; Betrayal (OAV)</anime><nb_votes>6254</nb_votes><nb_seen>9710</nb_seen><straight_average>8.931400299072266</straight_average><weighted_average>8.975199699401855</weighted_average><bayesian_average>8.972692489624023</bayesian_average></item>
6
+ <item id="9173"><anime href="/encyclopedia/anime.php?id=9173">Code Geass: Lelouch of the Rebellion R2 (TV)</anime><nb_votes>6760</nb_votes><nb_seen>10580</nb_seen><straight_average>9.049099922180176</straight_average><weighted_average>8.961700439453125</weighted_average><bayesian_average>8.959403038024902</bayesian_average></item>
7
+ <item id="11120"><anime href="/encyclopedia/anime.php?id=11120">Disappearance of Haruhi Suzumiya (movie)</anime><nb_votes>2166</nb_votes><nb_seen>3046</nb_seen><straight_average>8.934399604797363</straight_average><weighted_average>8.95300006866455</weighted_average><bayesian_average>8.945897102355957</bayesian_average></item>
8
+ <item id="377"><anime href="/encyclopedia/anime.php?id=377">Spirited Away (movie)</anime><nb_votes>9469</nb_votes><nb_seen>13622</nb_seen><straight_average>8.952899932861328</straight_average><weighted_average>8.909199714660645</weighted_average><bayesian_average>8.90761947631836</bayesian_average></item>
9
+ <item id="13"><anime href="/encyclopedia/anime.php?id=13">Cowboy Bebop (TV)</anime><nb_votes>10998</nb_votes><nb_seen>18756</nb_seen><straight_average>8.937399864196777</straight_average><weighted_average>8.904500007629395</weighted_average><bayesian_average>8.903143882751465</bayesian_average></item>
10
+ <item id="197"><anime href="/encyclopedia/anime.php?id=197">Princess Mononoke (movie)</anime><nb_votes>8914</nb_votes><nb_seen>13849</nb_seen><straight_average>8.927000045776367</straight_average><weighted_average>8.86460018157959</weighted_average><bayesian_average>8.862977027893066</bayesian_average></item>
11
+ <item id="15223"><anime href="/encyclopedia/anime.php?id=15223">Gintama' (TV 2012)</anime><nb_votes>49</nb_votes><nb_seen>87</nb_seen><straight_average>9.122400283813477</straight_average><weighted_average>9.142999649047852</weighted_average><bayesian_average>8.850454330444336</bayesian_average></item>
12
+ <item id="8421"><anime href="/encyclopedia/anime.php?id=8421">Evangelion: 2.0 You Can (Not) Advance (movie)</anime><nb_votes>1585</nb_votes><nb_seen>2465</nb_seen><straight_average>8.92240047454834</straight_average><weighted_average>8.856300354003906</weighted_average><bayesian_average>8.847278594970703</bayesian_average></item>
13
+ <item id="12368"><anime href="/encyclopedia/anime.php?id=12368">anohana: The Flower We Saw That Day (TV)</anime><nb_votes>2234</nb_votes><nb_seen>3204</nb_seen><straight_average>8.913200378417969</straight_average><weighted_average>8.847999572753906</weighted_average><bayesian_average>8.841626167297363</bayesian_average></item>
14
+ <item id="6592"><anime href="/encyclopedia/anime.php?id=6592">Death Note (TV)</anime><nb_votes>11322</nb_votes><nb_seen>19133</nb_seen><straight_average>8.88700008392334</straight_average><weighted_average>8.811300277709961</weighted_average><bayesian_average>8.810073852539062</bayesian_average></item>
15
+ <item id="5923"><anime href="/encyclopedia/anime.php?id=5923">Mushi-Shi (TV)</anime><nb_votes>4436</nb_votes><nb_seen>7150</nb_seen><straight_average>8.809499740600586</straight_average><weighted_average>8.807700157165527</weighted_average><bayesian_average>8.804582595825195</bayesian_average></item>
16
+ <item id="1786"><anime href="/encyclopedia/anime.php?id=1786">Legend of the Galactic Heroes (OAV)</anime><nb_votes>567</nb_votes><nb_seen>899</nb_seen><straight_average>8.774299621582031</straight_average><weighted_average>8.81879997253418</weighted_average><bayesian_average>8.794601440429688</bayesian_average></item>
17
+ <item id="12398"><anime href="/encyclopedia/anime.php?id=12398">Bunny Drop (TV)</anime><nb_votes>1284</nb_votes><nb_seen>1883</nb_seen><straight_average>8.86139965057373</straight_average><weighted_average>8.79800033569336</weighted_average><bayesian_average>8.787376403808594</bayesian_average></item>
18
+ <item id="6113"><anime href="/encyclopedia/anime.php?id=6113">Maria Watches Over Us 3rd Season (OAV)</anime><nb_votes>670</nb_votes><nb_seen>961</nb_seen><straight_average>8.877599716186523</straight_average><weighted_average>8.803099632263184</weighted_average><bayesian_average>8.782814979553223</bayesian_average></item>
19
+ <item id="6704"><anime href="/encyclopedia/anime.php?id=6704">Code Geass: Lelouch of the Rebellion (TV)</anime><nb_votes>7957</nb_votes><nb_seen>12934</nb_seen><straight_average>8.884099960327148</straight_average><weighted_average>8.777899742126465</weighted_average><bayesian_average>8.776201248168945</bayesian_average></item>
20
+ <item id="9210"><anime href="/encyclopedia/anime.php?id=9210">Maria Watches Over Us 4th Season (TV)</anime><nb_votes>448</nb_votes><nb_seen>629</nb_seen><straight_average>8.861599922180176</straight_average><weighted_average>8.804699897766113</weighted_average><bayesian_average>8.774565696716309</bayesian_average></item>
21
+ <item id="12835"><anime href="/encyclopedia/anime.php?id=12835">Gintama' (TV)</anime><nb_votes>241</nb_votes><nb_seen>492</nb_seen><straight_average>8.904600143432617</straight_average><weighted_average>8.8193998336792</weighted_average><bayesian_average>8.763871192932129</bayesian_average></item>
22
+ <item id="4175"><anime href="/encyclopedia/anime.php?id=4175">Maria Watches Over Us Season 2: Printemps (TV)</anime><nb_votes>1289</nb_votes><nb_seen>1725</nb_seen><straight_average>8.871999740600586</straight_average><weighted_average>8.772299766540527</weighted_average><bayesian_average>8.761934280395508</bayesian_average></item>
23
+ <item id="10544"><anime href="/encyclopedia/anime.php?id=10544">Summer Wars (movie)</anime><nb_votes>2737</nb_votes><nb_seen>3554</nb_seen><straight_average>8.853099822998047</straight_average><weighted_average>8.763299942016602</weighted_average><bayesian_average>8.758432388305664</bayesian_average></item>
24
+ <item id="3750"><anime href="/encyclopedia/anime.php?id=3750">Monster (TV)</anime><nb_votes>3013</nb_votes><nb_seen>5014</nb_seen><straight_average>8.778599739074707</straight_average><weighted_average>8.737199783325195</weighted_average><bayesian_average>8.732871055603027</bayesian_average></item>
25
+ <item id="6696"><anime href="/encyclopedia/anime.php?id=6696">5 Centimeters Per Second (movie)</anime><nb_votes>5067</nb_votes><nb_seen>7035</nb_seen><straight_average>8.797900199890137</straight_average><weighted_average>8.734600067138672</weighted_average><bayesian_average>8.732028007507324</bayesian_average></item>
26
+ <item id="13600"><anime href="/encyclopedia/anime.php?id=13600">Natsume's Book of Friends (TV 4)</anime><nb_votes>362</nb_votes><nb_seen>620</nb_seen><straight_average>8.80109977722168</straight_average><weighted_average>8.743399620056152</weighted_average><bayesian_average>8.708126068115234</bayesian_average></item>
27
+ <item id="7472"><anime href="/encyclopedia/anime.php?id=7472">Garden of Sinners (movie series)</anime><nb_votes>1370</nb_votes><nb_seen>2170</nb_seen><straight_average>8.800700187683105</straight_average><weighted_average>8.703200340270996</weighted_average><bayesian_average>8.69399356842041</bayesian_average></item>
28
+ <item id="10580"><anime href="/encyclopedia/anime.php?id=10580">Cross Game (TV)</anime><nb_votes>567</nb_votes><nb_seen>874</nb_seen><straight_average>8.843000411987305</straight_average><weighted_average>8.714400291442871</weighted_average><bayesian_average>8.69218921661377</bayesian_average></item>
29
+ <item id="6733"><anime href="/encyclopedia/anime.php?id=6733">Girl Who Leapt Through Time (movie)</anime><nb_votes>4914</nb_votes><nb_seen>6765</nb_seen><straight_average>8.718600273132324</straight_average><weighted_average>8.694700241088867</weighted_average><bayesian_average>8.692137718200684</bayesian_average></item>
30
+ <item id="2960"><anime href="/encyclopedia/anime.php?id=2960">Fullmetal Alchemist (TV)</anime><nb_votes>12409</nb_votes><nb_seen>21418</nb_seen><straight_average>8.766500473022461</straight_average><weighted_average>8.693099975585938</weighted_average><bayesian_average>8.692085266113281</bayesian_average></item>
31
+ <item id="7010"><anime href="/encyclopedia/anime.php?id=7010">Nodame Cantabile (TV)</anime><nb_votes>2510</nb_votes><nb_seen>3889</nb_seen><straight_average>8.704000473022461</straight_average><weighted_average>8.694600105285645</weighted_average><bayesian_average>8.689594268798828</bayesian_average></item>
32
+ <item id="152"><anime href="/encyclopedia/anime.php?id=152">Grave of the Fireflies (movie)</anime><nb_votes>4107</nb_votes><nb_seen>6161</nb_seen><straight_average>8.718999862670898</straight_average><weighted_average>8.690400123596191</weighted_average><bayesian_average>8.687346458435059</bayesian_average></item>
33
+ <item id="1139"><anime href="/encyclopedia/anime.php?id=1139">Fighting Spirit (TV)</anime><nb_votes>1446</nb_votes><nb_seen>2487</nb_seen><straight_average>8.766900062561035</straight_average><weighted_average>8.689599990844727</weighted_average><bayesian_average>8.680975914001465</bayesian_average></item>
34
+ <item id="8495"><anime href="/encyclopedia/anime.php?id=8495">Ghost in the Shell: Stand Alone Complex 2nd GIG (TV)</anime><nb_votes>2217</nb_votes><nb_seen>4231</nb_seen><straight_average>8.750100135803223</straight_average><weighted_average>8.684100151062012</weighted_average><bayesian_average>8.678487777709961</bayesian_average></item>
35
+ <item id="6698"><anime href="/encyclopedia/anime.php?id=6698">Gurren Lagann (TV)</anime><nb_votes>5961</nb_votes><nb_seen>9592</nb_seen><straight_average>8.779199600219727</straight_average><weighted_average>8.669300079345703</weighted_average><bayesian_average>8.66723346710205</bayesian_average></item>
36
+ <item id="180"><anime href="/encyclopedia/anime.php?id=180">Nausicaä of the Valley of the Wind (movie)</anime><nb_votes>4542</nb_votes><nb_seen>7030</nb_seen><straight_average>8.684100151062012</straight_average><weighted_average>8.648599624633789</weighted_average><bayesian_average>8.645938873291016</bayesian_average></item>
37
+ <item id="6440"><anime href="/encyclopedia/anime.php?id=6440">Honey and Clover II (TV)</anime><nb_votes>1912</nb_votes><nb_seen>2847</nb_seen><straight_average>8.613499641418457</straight_average><weighted_average>8.643099784851074</weighted_average><bayesian_average>8.636831283569336</bayesian_average></item>
38
+ <item id="7492"><anime href="/encyclopedia/anime.php?id=7492">Baccano! (TV)</anime><nb_votes>3451</nb_votes><nb_seen>5709</nb_seen><straight_average>8.718600273132324</straight_average><weighted_average>8.63640022277832</weighted_average><bayesian_average>8.632939338684082</bayesian_average></item>
39
+ <item id="7890"><anime href="/encyclopedia/anime.php?id=7890">Mononoke (TV)</anime><nb_votes>649</nb_votes><nb_seen>1069</nb_seen><straight_average>8.659500122070312</straight_average><weighted_average>8.648099899291992</weighted_average><bayesian_average>8.629753112792969</bayesian_average></item>
40
+ <item id="6431"><anime href="/encyclopedia/anime.php?id=6431">Kanon (TV 2/2006)</anime><nb_votes>3369</nb_votes><nb_seen>5198</nb_seen><straight_average>8.71150016784668</straight_average><weighted_average>8.628999710083008</weighted_average><bayesian_average>8.625479698181152</bayesian_average></item>
41
+ <item id="7998"><anime href="/encyclopedia/anime.php?id=7998">Eve no Jikan (ONA)</anime><nb_votes>1199</nb_votes><nb_seen>1841</nb_seen><straight_average>8.697199821472168</straight_average><weighted_average>8.626099586486816</weighted_average><bayesian_average>8.616291999816895</bayesian_average></item>
42
+ <item id="534"><anime href="/encyclopedia/anime.php?id=534">My Neighbor Totoro (movie)</anime><nb_votes>4045</nb_votes><nb_seen>6289</nb_seen><straight_average>8.669699668884277</straight_average><weighted_average>8.618800163269043</weighted_average><bayesian_average>8.615894317626953</bayesian_average></item>
43
+ <item id="11350"><anime href="/encyclopedia/anime.php?id=11350">Time of Eve (movie)</anime><nb_votes>427</nb_votes><nb_seen>605</nb_seen><straight_average>8.723699569702148</straight_average><weighted_average>8.643199920654297</weighted_average><bayesian_average>8.615676879882812</bayesian_average></item>
44
+ <item id="10387"><anime href="/encyclopedia/anime.php?id=10387">Hajime no Ippo: New Challenger (TV)</anime><nb_votes>597</nb_votes><nb_seen>985</nb_seen><straight_average>8.680100440979004</straight_average><weighted_average>8.635000228881836</weighted_average><bayesian_average>8.615321159362793</bayesian_average></item>
45
+ <item id="1965"><anime href="/encyclopedia/anime.php?id=1965">Kino's Journey (TV)</anime><nb_votes>2363</nb_votes><nb_seen>3677</nb_seen><straight_average>8.6225004196167</straight_average><weighted_average>8.599100112915039</weighted_average><bayesian_average>8.594226837158203</bayesian_average></item>
46
+ <item id="153"><anime href="/encyclopedia/anime.php?id=153">Great Teacher Onizuka (TV)</anime><nb_votes>3852</nb_votes><nb_seen>6704</nb_seen><straight_average>8.683500289916992</straight_average><weighted_average>8.579500198364258</weighted_average><bayesian_average>8.576560974121094</bayesian_average></item>
47
+ <item id="10254"><anime href="/encyclopedia/anime.php?id=10254">Natsume's Book of Friends (TV 2)</anime><nb_votes>940</nb_votes><nb_seen>1462</nb_seen><straight_average>8.664899826049805</straight_average><weighted_average>8.586700439453125</weighted_average><bayesian_average>8.574677467346191</bayesian_average></item>
48
+ <item id="12542"><anime href="/encyclopedia/anime.php?id=12542">Natsume's Book of Friends (TV 3)</anime><nb_votes>465</nb_votes><nb_seen>775</nb_seen><straight_average>8.668800354003906</straight_average><weighted_average>8.592300415039062</weighted_average><bayesian_average>8.568151473999023</bayesian_average></item>
49
+ <item id="6430"><anime href="/encyclopedia/anime.php?id=6430">Melancholy of Haruhi Suzumiya (TV)</anime><nb_votes>9493</nb_votes><nb_seen>14407</nb_seen><straight_average>8.620200157165527</straight_average><weighted_average>8.557000160217285</weighted_average><bayesian_average>8.555831909179688</bayesian_average></item>
50
+ <item id="7809"><anime href="/encyclopedia/anime.php?id=7809">Clannad (TV)</anime><nb_votes>5344</nb_votes><nb_seen>8727</nb_seen><straight_average>8.690899848937988</straight_average><weighted_average>8.557100296020508</weighted_average><bayesian_average>8.555026054382324</bayesian_average></item>
51
+ <item id="889"><anime href="/encyclopedia/anime.php?id=889">Howl's Moving Castle (movie)</anime><nb_votes>6085</nb_votes><nb_seen>9591</nb_seen><straight_average>8.620499610900879</straight_average><weighted_average>8.553400039672852</weighted_average><bayesian_average>8.551584243774414</bayesian_average></item></report>
@@ -0,0 +1,101 @@
1
+ <report skipped="0" listed="100">
2
+ <item><anime href="/encyclopedia/anime.php?id=15201">Otona Joshi no Anime Time (TV 2)</anime><production_date>2013-03-10 to 2013-03-24</production_date><nb_episodes>3</nb_episodes><nb_days>15</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
3
+ <item><anime href="/encyclopedia/anime.php?id=14841">Senyū. (TV)</anime><production_date>2013-01-08 to 2013-04-02</production_date><nb_episodes>13</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
4
+ <item><anime href="/encyclopedia/anime.php?id=14857">Unlimited - Hyōbu Kyōsuke (TV)</anime><production_date>2013-01-07 to 2013-03-25</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
5
+ <item><anime href="/encyclopedia/anime.php?id=14873">AKB0048 next stage (TV)</anime><production_date>2013-01-05 to 2013-03-30</production_date><nb_episodes>13</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
6
+ <item><anime href="/encyclopedia/anime.php?id=14195">Psycho-Pass (TV)</anime><production_date>2012-10-12 to 2013-03-19</production_date><nb_episodes>22</nb_episodes><nb_days>159</nb_days><avg_days_between_eps>7.52</avg_days_between_eps></item>
7
+ <item><anime href="/encyclopedia/anime.php?id=15252">Ōoku: Tanjō - Arikoto・Iemitsu Hen (live-action TV)</anime><production_date>2012-10-12 to 2012-12-14</production_date><nb_episodes>10</nb_episodes><nb_days>64</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
8
+ <item><anime href="/encyclopedia/anime.php?id=14196">Robotics;Notes (TV)</anime><production_date>2012-10-11 to 2013-03-21</production_date><nb_episodes>22</nb_episodes><nb_days>162</nb_days><avg_days_between_eps>7.67</avg_days_between_eps></item>
9
+ <item><anime href="/encyclopedia/anime.php?id=14726">Medaka Box Abnormal (TV)</anime><production_date>2012-10-10 to 2012-12-27</production_date><nb_episodes>12</nb_episodes><nb_days>79</nb_days><avg_days_between_eps>7.09</avg_days_between_eps></item>
10
+ <item><anime href="/encyclopedia/anime.php?id=14209">To Love-Ru -Trouble- Darkness (TV)</anime><production_date>2012-10-05 to 2012-12-28</production_date><nb_episodes>12</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.64</avg_days_between_eps></item>
11
+ <item><anime href="/encyclopedia/anime.php?id=13332">Hidamari Sketch × Honeycomb (TV)</anime><production_date>2012-10-04 to 2012-12-20</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
12
+ <item><anime href="/encyclopedia/anime.php?id=14419">My Little Monster (TV)</anime><production_date>2012-10-01 to 2012-12-25</production_date><nb_episodes>13</nb_episodes><nb_days>86</nb_days><avg_days_between_eps>7.08</avg_days_between_eps></item>
13
+ <item><anime href="/encyclopedia/anime.php?id=13858">Sword Art Online (TV)</anime><production_date>2012-07-07 to 2012-12-22</production_date><nb_episodes>25</nb_episodes><nb_days>169</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
14
+ <item><anime href="/encyclopedia/anime.php?id=14113">Kokoro Connect (TV)</anime><production_date>2012-07-07 to 2012-09-29</production_date><nb_episodes>17</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>5.25</avg_days_between_eps></item>
15
+ <item><anime href="/encyclopedia/anime.php?id=13947">So, I Can't Play H! (TV)</anime><production_date>2012-07-06 to 2012-09-25</production_date><nb_episodes>12</nb_episodes><nb_days>82</nb_days><avg_days_between_eps>7.36</avg_days_between_eps></item>
16
+ <item><anime href="/encyclopedia/anime.php?id=14176">NAKAIMO - My Little Sister Is Among Them! (TV)</anime><production_date>2012-07-05 to 2012-09-27</production_date><nb_episodes>12</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.64</avg_days_between_eps></item>
17
+ <item><anime href="/encyclopedia/anime.php?id=14191">Binbogami ga! (TV)</anime><production_date>2012-07-04 to 2012-09-26</production_date><nb_episodes>13</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
18
+ <item><anime href="/encyclopedia/anime.php?id=14167">Tari Tari (TV)</anime><production_date>2012-07-01 to 2012-09-23</production_date><nb_episodes>13</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
19
+ <item><anime href="/encyclopedia/anime.php?id=13805">AKB0048 (TV)</anime><production_date>2012-04-29 to 2012-07-22</production_date><nb_episodes>13</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
20
+ <item><anime href="/encyclopedia/anime.php?id=13817">Hyōka (TV)</anime><production_date>2012-04-22 to 2012-09-16</production_date><nb_episodes>22</nb_episodes><nb_days>148</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
21
+ <item><anime href="/encyclopedia/anime.php?id=14151">Inazuma Eleven GO 2: Chrono Stone (TV)</anime><production_date>2012-04-18 to 2013-05-01</production_date><nb_episodes>51</nb_episodes><nb_days>379</nb_days><avg_days_between_eps>7.56</avg_days_between_eps></item>
22
+ <item><anime href="/encyclopedia/anime.php?id=13944">Kids on the Slope (TV)</anime><production_date>2012-04-12 to 2012-06-28</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
23
+ <item><anime href="/encyclopedia/anime.php?id=13888">Jormungand (TV)</anime><production_date>2012-04-10 to 2012-06-26</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
24
+ <item><anime href="/encyclopedia/anime.php?id=14122">Fate/Zero (TV 2)</anime><production_date>2012-04-07 to 2012-06-23</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
25
+ <item><anime href="/encyclopedia/anime.php?id=14358">Unofficial Sentai Akibaranger (live-action TV)</anime><production_date>2012-04-06 to 2012-06-27</production_date><nb_episodes>13</nb_episodes><nb_days>83</nb_days><avg_days_between_eps>6.83</avg_days_between_eps></item>
26
+ <item><anime href="/encyclopedia/anime.php?id=14490">Recorder and Randsell Re (TV)</anime><production_date>2012-04-05 to 2012-06-27</production_date><nb_episodes>13</nb_episodes><nb_days>84</nb_days><avg_days_between_eps>6.92</avg_days_between_eps></item>
27
+ <item><anime href="/encyclopedia/anime.php?id=14135">Lupin III: The Woman Called Fujiko Mine (TV)</anime><production_date>2012-04-04 to 2012-06-27</production_date><nb_episodes>13</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
28
+ <item><anime href="/encyclopedia/anime.php?id=13736">Zetman (TV)</anime><production_date>2012-04-02 to 2012-06-25</production_date><nb_episodes>13</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
29
+ <item><anime href="/encyclopedia/anime.php?id=14890">Patema Inverted: Beginning of the Day (ONA)</anime><production_date>2012-02-26 to 2012-08-25</production_date><nb_episodes>4</nb_episodes><nb_days>182</nb_days><avg_days_between_eps>60.33</avg_days_between_eps></item>
30
+ <item><anime href="/encyclopedia/anime.php?id=13809">Smile Precure! (TV)</anime><production_date>2012-02-05 to 2013-01-27</production_date><nb_episodes>48</nb_episodes><nb_days>358</nb_days><avg_days_between_eps>7.60</avg_days_between_eps></item>
31
+ <item><anime href="/encyclopedia/anime.php?id=13310">Black Rock Shooter (TV)</anime><production_date>2012-02-02 to 2012-03-22</production_date><nb_episodes>8</nb_episodes><nb_days>50</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
32
+ <item><anime href="/encyclopedia/anime.php?id=14001">Sekiei Ayakashi Mangatan (ONA)</anime><production_date>2012-02-02 to 2012-03-01</production_date><nb_episodes>3</nb_episodes><nb_days>29</nb_days><avg_days_between_eps>14.00</avg_days_between_eps></item>
33
+ <item><anime href="/encyclopedia/anime.php?id=13756">Listen to Me, Girls. I Am Your Father! (TV)</anime><production_date>2012-01-10 to 2012-03-27</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
34
+ <item><anime href="/encyclopedia/anime.php?id=13258">Another (TV)</anime><production_date>2012-01-09 to 2012-03-26</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
35
+ <item><anime href="/encyclopedia/anime.php?id=13448">Waiting in the Summer (TV)</anime><production_date>2012-01-09 to 2012-03-26</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
36
+ <item><anime href="/encyclopedia/anime.php?id=13743">Daily Lives of High School Boys (TV)</anime><production_date>2012-01-09 to 2012-03-26</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
37
+ <item><anime href="/encyclopedia/anime.php?id=12547">Aquarion Evol (TV)</anime><production_date>2012-01-08 to 2012-06-24</production_date><nb_episodes>26</nb_episodes><nb_days>169</nb_days><avg_days_between_eps>6.72</avg_days_between_eps></item>
38
+ <item><anime href="/encyclopedia/anime.php?id=11399">Bodacious Space Pirates (TV)</anime><production_date>2012-01-07 to 2012-06-30</production_date><nb_episodes>26</nb_episodes><nb_days>176</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
39
+ <item><anime href="/encyclopedia/anime.php?id=13223">Brave10 (TV)</anime><production_date>2012-01-07 to 2012-03-24</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
40
+ <item><anime href="/encyclopedia/anime.php?id=13615">Familiar of Zero F (TV)</anime><production_date>2012-01-07 to 2012-03-24</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
41
+ <item><anime href="/encyclopedia/anime.php?id=13556">Nisemonogatari (TV)</anime><production_date>2012-01-07 to 2012-03-17</production_date><nb_episodes>11</nb_episodes><nb_days>71</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
42
+ <item><anime href="/encyclopedia/anime.php?id=13328">Amagami SS+ (TV)</anime><production_date>2012-01-05 to 2012-03-29</production_date><nb_episodes>13</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
43
+ <item><anime href="/encyclopedia/anime.php?id=13314">Tantei Opera Milky Holmes Dai-Ni-Maku (TV)</anime><production_date>2012-01-05 to 2012-03-22</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
44
+ <item><anime href="/encyclopedia/anime.php?id=13001">Guilty Crown (TV)</anime><production_date>2011-10-13 to 2012-03-22</production_date><nb_episodes>22</nb_episodes><nb_days>162</nb_days><avg_days_between_eps>7.67</avg_days_between_eps></item>
45
+ <item><anime href="/encyclopedia/anime.php?id=13002">Un-Go (TV)</anime><production_date>2011-10-13 to 2011-12-22</production_date><nb_episodes>11</nb_episodes><nb_days>71</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
46
+ <item><anime href="/encyclopedia/anime.php?id=13012">Mobile Suit Gundam AGE (TV)</anime><production_date>2011-10-09 to 2012-09-23</production_date><nb_episodes>49</nb_episodes><nb_days>351</nb_days><avg_days_between_eps>7.29</avg_days_between_eps></item>
47
+ <item><anime href="/encyclopedia/anime.php?id=12541">Ben-To (TV)</anime><production_date>2011-10-08 to 2011-12-24</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
48
+ <item><anime href="/encyclopedia/anime.php?id=13003">Shakugan no Shana III (Final) (TV)</anime><production_date>2011-10-07 to 2012-03-23</production_date><nb_episodes>24</nb_episodes><nb_days>169</nb_days><avg_days_between_eps>7.30</avg_days_between_eps></item>
49
+ <item><anime href="/encyclopedia/anime.php?id=12870">Persona 4: The Animation (TV)</anime><production_date>2011-10-06 to 2012-03-29</production_date><nb_episodes>26</nb_episodes><nb_days>176</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
50
+ <item><anime href="/encyclopedia/anime.php?id=12983">Haganai (TV)</anime><production_date>2011-10-06 to 2011-12-22</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
51
+ <item><anime href="/encyclopedia/anime.php?id=12991">Chihayafuru (TV)</anime><production_date>2011-10-04 to 2012-03-27</production_date><nb_episodes>25</nb_episodes><nb_days>176</nb_days><avg_days_between_eps>7.29</avg_days_between_eps></item>
52
+ <item><anime href="/encyclopedia/anime.php?id=12570">Mashiroiro Symphony - The color of lovers (TV)</anime><production_date>2011-10-04 to 2011-12-20</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
53
+ <item><anime href="/encyclopedia/anime.php?id=12925">Maken-Ki! Battling Venus (TV)</anime><production_date>2011-10-04 to 2011-12-20</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
54
+ <item><anime href="/encyclopedia/anime.php?id=12427">Tamayura - Hitotose (TV)</anime><production_date>2011-10-03 to 2011-12-19</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
55
+ <item><anime href="/encyclopedia/anime.php?id=12271">Phi-Brain: Puzzle of God (TV)</anime><production_date>2011-10-02 to 2012-04-01</production_date><nb_episodes>25</nb_episodes><nb_days>183</nb_days><avg_days_between_eps>7.58</avg_days_between_eps></item>
56
+ <item><anime href="/encyclopedia/anime.php?id=13419">Digimon Xros Wars: Toki o Kakeru Shōnen Hunter-tachi (TV)</anime><production_date>2011-10-02 to 2012-03-25</production_date><nb_episodes>25</nb_episodes><nb_days>176</nb_days><avg_days_between_eps>7.29</avg_days_between_eps></item>
57
+ <item><anime href="/encyclopedia/anime.php?id=12311">Bakuman. 2 (TV)</anime><production_date>2011-10-01 to 2012-03-24</production_date><nb_episodes>25</nb_episodes><nb_days>176</nb_days><avg_days_between_eps>7.29</avg_days_between_eps></item>
58
+ <item><anime href="/encyclopedia/anime.php?id=12376">Fate/Zero (TV)</anime><production_date>2011-10-01 to 2011-12-24</production_date><nb_episodes>13</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
59
+ <item><anime href="/encyclopedia/anime.php?id=12992">C³ (TV)</anime><production_date>2011-10-01 to 2011-12-17</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
60
+ <item><anime href="/encyclopedia/anime.php?id=12842">Squid Girl Season 2 (TV)</anime><production_date>2011-09-26 to 2011-12-26</production_date><nb_episodes>12</nb_episodes><nb_days>92</nb_days><avg_days_between_eps>8.27</avg_days_between_eps></item>
61
+ <item><anime href="/encyclopedia/anime.php?id=12895">R-15 (TV)</anime><production_date>2011-07-09 to 2011-09-24</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
62
+ <item><anime href="/encyclopedia/anime.php?id=12436">IDOLM@STER (TV)</anime><production_date>2011-07-07 to 2011-12-22</production_date><nb_episodes>25</nb_episodes><nb_days>169</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
63
+ <item><anime href="/encyclopedia/anime.php?id=12998">Penguindrum (TV)</anime><production_date>2011-07-07 to 2011-12-22</production_date><nb_episodes>24</nb_episodes><nb_days>169</nb_days><avg_days_between_eps>7.30</avg_days_between_eps></item>
64
+ <item><anime href="/encyclopedia/anime.php?id=12431">Baka and Test - Summon the Beasts 2 (TV)</anime><production_date>2011-07-07 to 2011-09-29</production_date><nb_episodes>13</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
65
+ <item><anime href="/encyclopedia/anime.php?id=12857">Blood-C (TV)</anime><production_date>2011-07-07 to 2011-09-29</production_date><nb_episodes>12</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.64</avg_days_between_eps></item>
66
+ <item><anime href="/encyclopedia/anime.php?id=12364">Mayo Chiki! (TV)</anime><production_date>2011-07-07 to 2011-09-22</production_date><nb_episodes>13</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>6.42</avg_days_between_eps></item>
67
+ <item><anime href="/encyclopedia/anime.php?id=12398">Bunny Drop (TV)</anime><production_date>2011-07-07 to 2011-09-15</production_date><nb_episodes>11</nb_episodes><nb_days>71</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
68
+ <item><anime href="/encyclopedia/anime.php?id=12399">No. 6 (TV)</anime><production_date>2011-07-07 to 2011-09-15</production_date><nb_episodes>11</nb_episodes><nb_days>71</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
69
+ <item><anime href="/encyclopedia/anime.php?id=12828">Yuruyuri (TV)</anime><production_date>2011-07-04 to 2011-09-19</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
70
+ <item><anime href="/encyclopedia/anime.php?id=12222">Croisée in a Foreign Labyrinth - The Animation (TV)</anime><production_date>2011-07-03 to 2011-09-18</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
71
+ <item><anime href="/encyclopedia/anime.php?id=12509">Uta no Prince-sama - Maji Love 1000% (TV)</anime><production_date>2011-07-02 to 2011-09-24</production_date><nb_episodes>13</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
72
+ <item><anime href="/encyclopedia/anime.php?id=12865">Heaven's Memo Pad (TV)</anime><production_date>2011-07-02 to 2011-09-23</production_date><nb_episodes>12</nb_episodes><nb_days>84</nb_days><avg_days_between_eps>7.55</avg_days_between_eps></item>
73
+ <item><anime href="/encyclopedia/anime.php?id=12393">Sacred Seven (TV)</anime><production_date>2011-07-02 to 2011-09-16</production_date><nb_episodes>12</nb_episodes><nb_days>77</nb_days><avg_days_between_eps>6.91</avg_days_between_eps></item>
74
+ <item><anime href="/encyclopedia/anime.php?id=12864">Ro-Kyu-Bu! (TV)</anime><production_date>2011-07-01 to 2011-09-23</production_date><nb_episodes>12</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.64</avg_days_between_eps></item>
75
+ <item><anime href="/encyclopedia/anime.php?id=12210">Blue Exorcist (TV)</anime><production_date>2011-04-17 to 2011-10-02</production_date><nb_episodes>25</nb_episodes><nb_days>169</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
76
+ <item><anime href="/encyclopedia/anime.php?id=11826">Deadman Wonderland (TV)</anime><production_date>2011-04-16 to 2011-07-02</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
77
+ <item><anime href="/encyclopedia/anime.php?id=11451">Aria the Scarlet Ammo (TV)</anime><production_date>2011-04-14 to 2011-06-30</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
78
+ <item><anime href="/encyclopedia/anime.php?id=12303">Yu-Gi-Oh! Zexal (TV)</anime><production_date>2011-04-11 to 2012-09-24</production_date><nb_episodes>74</nb_episodes><nb_days>533</nb_days><avg_days_between_eps>7.29</avg_days_between_eps></item>
79
+ <item><anime href="/encyclopedia/anime.php?id=12368">anohana: The Flower We Saw That Day (TV)</anime><production_date>2011-04-11 to 2011-06-23</production_date><nb_episodes>11</nb_episodes><nb_days>74</nb_days><avg_days_between_eps>7.30</avg_days_between_eps></item>
80
+ <item><anime href="/encyclopedia/anime.php?id=12328">Ring ni Kakero 1: Sekai Taikai-hen (TV)</anime><production_date>2011-04-10 to 2011-06-12</production_date><nb_episodes>6</nb_episodes><nb_days>64</nb_days><avg_days_between_eps>12.60</avg_days_between_eps></item>
81
+ <item><anime href="/encyclopedia/anime.php?id=12432">Pretty Rhythm Aurora Dream (TV)</anime><production_date>2011-04-09 to 2012-04-01</production_date><nb_episodes>51</nb_episodes><nb_days>359</nb_days><avg_days_between_eps>7.16</avg_days_between_eps></item>
82
+ <item><anime href="/encyclopedia/anime.php?id=12527">Jewelpet Sunshine (TV)</anime><production_date>2011-04-09 to 2012-03-31</production_date><nb_episodes>52</nb_episodes><nb_days>358</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
83
+ <item><anime href="/encyclopedia/anime.php?id=12345">Yondemasu yo, Azazel-san (TV)</anime><production_date>2011-04-08 to 2011-07-01</production_date><nb_episodes>13</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
84
+ <item><anime href="/encyclopedia/anime.php?id=12267">Ghastly Prince Enma Burning Up (TV)</anime><production_date>2011-04-07 to 2011-06-23</production_date><nb_episodes>12</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
85
+ <item><anime href="/encyclopedia/anime.php?id=12835">Gintama' (TV)</anime><production_date>2011-04-04 to 2012-03-26</production_date><nb_episodes>51</nb_episodes><nb_days>358</nb_days><avg_days_between_eps>7.14</avg_days_between_eps></item>
86
+ <item><anime href="/encyclopedia/anime.php?id=12506">Battle Girls - Time Paradox (TV)</anime><production_date>2011-04-04 to 2011-06-27</production_date><nb_episodes>13</nb_episodes><nb_days>85</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
87
+ <item><anime href="/encyclopedia/anime.php?id=12918">Beyblade: Metal Fury (TV)</anime><production_date>2011-04-03 to 2012-04-01</production_date><nb_episodes>52</nb_episodes><nb_days>365</nb_days><avg_days_between_eps>7.14</avg_days_between_eps></item>
88
+ <item><anime href="/encyclopedia/anime.php?id=11795">Hanasaku Iroha - Blossoms for Tomorrow (TV)</anime><production_date>2011-04-03 to 2011-09-25</production_date><nb_episodes>26</nb_episodes><nb_days>176</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
89
+ <item><anime href="/encyclopedia/anime.php?id=12840">Duel Masters Victory (TV)</anime><production_date>2011-04-02 to 2012-03-31</production_date><nb_episodes>52</nb_episodes><nb_days>365</nb_days><avg_days_between_eps>7.14</avg_days_between_eps></item>
90
+ <item><anime href="/encyclopedia/anime.php?id=12142">Nichijou - My Ordinary Life (TV)</anime><production_date>2011-04-02 to 2011-09-24</production_date><nb_episodes>26</nb_episodes><nb_days>176</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
91
+ <item><anime href="/encyclopedia/anime.php?id=12198">Tiger &amp; Bunny (TV)</anime><production_date>2011-04-02 to 2011-09-17</production_date><nb_episodes>25</nb_episodes><nb_days>169</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
92
+ <item><anime href="/encyclopedia/anime.php?id=11038">Danbōru Senki (TV)</anime><production_date>2011-03-02 to 2012-01-11</production_date><nb_episodes>44</nb_episodes><nb_days>316</nb_days><avg_days_between_eps>7.33</avg_days_between_eps></item>
93
+ <item><anime href="/encyclopedia/anime.php?id=12216">Suite Precure (TV)</anime><production_date>2011-02-06 to 2012-01-29</production_date><nb_episodes>48</nb_episodes><nb_days>358</nb_days><avg_days_between_eps>7.60</avg_days_between_eps></item>
94
+ <item><anime href="/encyclopedia/anime.php?id=11788">T.P. Sakura - Time Paladin Sakura - Jikū Bōeisen (OAV)</anime><production_date>2011-01-27 to 2011-02-24</production_date><nb_episodes>2</nb_episodes><nb_days>29</nb_days><avg_days_between_eps>28.00</avg_days_between_eps></item>
95
+ <item><anime href="/encyclopedia/anime.php?id=11858">Beelzebub (TV)</anime><production_date>2011-01-09 to 2012-03-25</production_date><nb_episodes>60</nb_episodes><nb_days>442</nb_days><avg_days_between_eps>7.47</avg_days_between_eps></item>
96
+ <item><anime href="/encyclopedia/anime.php?id=11763">Cardfight!! Vanguard (TV)</anime><production_date>2011-01-08 to 2012-03-31</production_date><nb_episodes>65</nb_episodes><nb_days>449</nb_days><avg_days_between_eps>7.00</avg_days_between_eps></item>
97
+ <item><anime href="/encyclopedia/anime.php?id=12120">Puella Magi Madoka Magica (TV)</anime><production_date>2011-01-06 to 2011-04-21</production_date><nb_episodes>12</nb_episodes><nb_days>106</nb_days><avg_days_between_eps>9.55</avg_days_between_eps></item>
98
+ <item><anime href="/encyclopedia/anime.php?id=11765">Dream Eater Merry (TV)</anime><production_date>2011-01-06 to 2011-04-07</production_date><nb_episodes>13</nb_episodes><nb_days>92</nb_days><avg_days_between_eps>7.58</avg_days_between_eps></item>
99
+ <item><anime href="/encyclopedia/anime.php?id=12275">Showa Monogatari (TV)</anime><production_date>2010-12-30 to 2011-01-02</production_date><nb_episodes>13</nb_episodes><nb_days>4</nb_days><avg_days_between_eps>0.25</avg_days_between_eps></item>
100
+ <item><anime href="/encyclopedia/anime.php?id=11495">Rita et Machin (TV)</anime><production_date>2010-11-01 to 2010-12-24</production_date><nb_episodes>26</nb_episodes><nb_days>54</nb_days><avg_days_between_eps>2.12</avg_days_between_eps></item>
101
+ <item><anime href="/encyclopedia/anime.php?id=11282">Princess Jellyfish (TV)</anime><production_date>2010-10-14 to 2010-12-30</production_date><nb_episodes>11</nb_episodes><nb_days>78</nb_days><avg_days_between_eps>7.70</avg_days_between_eps></item></report>
@@ -0,0 +1,74 @@
1
+ require 'webmock/rspec'
2
+
3
+ describe AnimeNewsNetwork::Encyclopedia::Reports do
4
+ before do
5
+ reports_xml = File.new(File.expand_path('../../../resources/reports_xml_id_177', __FILE__))
6
+ stub_http_request(:get, "cdn.animenewsnetwork.com/encyclopedia/reports.xml")
7
+ .with(query: { id: 177 })
8
+ .to_return(body: reports_xml)
9
+
10
+ reports_xml = File.new(File.expand_path('../../../resources/reports_xml_id_155_type_anime', __FILE__))
11
+ stub_http_request(:get, "cdn.animenewsnetwork.com/encyclopedia/reports.xml")
12
+ .with(query: { id: 155, type: 'anime' })
13
+ .to_return(body: reports_xml)
14
+
15
+ reports_xml = File.new(File.expand_path('../../../resources/reports_xml_id_172', __FILE__))
16
+ stub_http_request(:get, "cdn.animenewsnetwork.com/encyclopedia/reports.xml")
17
+ .with(query: { id: 172 })
18
+ .to_return(body: reports_xml)
19
+
20
+ reports_xml = File.new(File.expand_path('../../../resources/reports_xml_id_148', __FILE__))
21
+ stub_http_request(:get, "cdn.animenewsnetwork.com/encyclopedia/reports.xml")
22
+ .with(query: { id: 148 })
23
+ .to_return(body: reports_xml)
24
+ end
25
+
26
+ let(:reports) { AnimeNewsNetwork::Encyclopedia::Reports.new }
27
+
28
+ describe "anime_series_length" do
29
+ subject { reports.anime_series_length() }
30
+ it { should be_a Array }
31
+ its(:first) { should eq Hash[
32
+ id: 15201,
33
+ title: "Otona Joshi no Anime Time (TV 2)",
34
+ episodes: 3,
35
+ start_date: "2013-03-10",
36
+ end_date: "2013-03-24"
37
+ ] }
38
+ end
39
+
40
+ describe "anime_list" do
41
+ subject { reports.anime_list() }
42
+ it { should be_a Array }
43
+ its(:first) { should eq Hash[
44
+ id: 15347,
45
+ gid: 1743357399,
46
+ name: "Outbreak Company",
47
+ type: "TV",
48
+ ] }
49
+ end
50
+
51
+ describe "anime_ratings" do
52
+ subject { reports.anime_ratings() }
53
+ it { should be_a Array }
54
+ its(:first) { should eq Hash[
55
+ id: 11770,
56
+ title: "Steins;Gate (TV)",
57
+ nb_votes: 2733,
58
+ nb_seen: 3903,
59
+ straight_average: 9.230199813842773,
60
+ weighted_average: 9.122900009155273,
61
+ bayesian_average: 9.116583824157715,
62
+ ] }
63
+ end
64
+
65
+ describe "anime_added_recently" do
66
+ subject { reports.anime_added_recently() }
67
+ it { should be_a Array }
68
+ its(:first) { should eq Hash[
69
+ id: 15359,
70
+ title: "Arpeggio of Blue Steel (TV)",
71
+ date_added: "2013-05-29 14:29:49",
72
+ ] }
73
+ end
74
+ end
@@ -17,6 +17,11 @@ describe AnimeNewsNetwork::Encyclopedia do
17
17
  .with(query: { id: 155, type: "anime", nlist: "all" })
18
18
  .to_return(body: reports_xml)
19
19
 
20
+ reports_xml = File.new(File.expand_path('../../resources/reports_xml_id_155_type_anime', __FILE__))
21
+ stub_http_request(:get, "cdn.animenewsnetwork.com/encyclopedia/reports.xml")
22
+ .with(query: { id: 155, name: "foo", search: "bar baz" })
23
+ .to_return(body: reports_xml)
24
+
20
25
  api_xml = File.new(File.expand_path('../../resources/api_xml_anime_4658', __FILE__))
21
26
  stub_http_request(:get, "cdn.animenewsnetwork.com/encyclopedia/api.xml")
22
27
  .with(query: { anime: 4658 })
@@ -37,6 +42,10 @@ describe AnimeNewsNetwork::Encyclopedia do
37
42
  subject { ann.get_reports(id: 155, type: 'anime', nlist: 'all') }
38
43
  it { should be_a Nokogiri::XML::Document }
39
44
  end
45
+ describe "GET reports name & search" do
46
+ subject { ann.get_reports(id: 155, name: "foo", search: "bar baz") }
47
+ it { should be_a Nokogiri::XML::Document }
48
+ end
40
49
 
41
50
  describe "GET details" do
42
51
  subject { ann.get_details(id: 4658, type: 'anime') }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: animenewsnetwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -156,11 +156,16 @@ files:
156
156
  - animenewsnetwork.gemspec
157
157
  - lib/animenewsnetwork.rb
158
158
  - lib/animenewsnetwork/encyclopedia.rb
159
+ - lib/animenewsnetwork/encyclopedia/reports.rb
159
160
  - lib/animenewsnetwork/version.rb
160
161
  - spec/animenewsnetwork_spec.rb
161
162
  - spec/resources/api_xml_anime_4658
163
+ - spec/resources/reports_xml_id_148
162
164
  - spec/resources/reports_xml_id_155_type_anime
165
+ - spec/resources/reports_xml_id_172
166
+ - spec/resources/reports_xml_id_177
163
167
  - spec/spec_helper.rb
168
+ - spec/unit/encyclopedia/reports_spec.rb
164
169
  - spec/unit/encyclopedia_spec.rb
165
170
  homepage: ''
166
171
  licenses:
@@ -183,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
188
  version: '0'
184
189
  segments:
185
190
  - 0
186
- hash: 3131183906614767275
191
+ hash: -414231716371021068
187
192
  requirements: []
188
193
  rubyforge_project:
189
194
  rubygems_version: 1.8.23
@@ -193,6 +198,10 @@ summary: AnimeNewsNetwork API
193
198
  test_files:
194
199
  - spec/animenewsnetwork_spec.rb
195
200
  - spec/resources/api_xml_anime_4658
201
+ - spec/resources/reports_xml_id_148
196
202
  - spec/resources/reports_xml_id_155_type_anime
203
+ - spec/resources/reports_xml_id_172
204
+ - spec/resources/reports_xml_id_177
197
205
  - spec/spec_helper.rb
206
+ - spec/unit/encyclopedia/reports_spec.rb
198
207
  - spec/unit/encyclopedia_spec.rb