How to: with api and pry / by Jenny Campos

Last login: Tue Jul 1 14:02:59 on ttys001 jc-macbook-2:~ jcampos$ pry
[1] pry(main)> require 'rest-client'
=> true
[2] pry(main)> mash_client = RestClient.get("http://mashable.com/stories.json")
=> "{\"new\":[{\"_id\":\"53b5e2a997b2f85f54000204\",\"id\":\"2014/07/03/crying-japanese-politician-video\",\"title\":\"A Hysterically Sobbing Politician Is Sad But Also Kind of Hilarious\",\"title_tag\":null,\"author\":\"Katie Nelson\", \"post_date\":\"2014-07-03T23:09:14+00:00\",\"post_date_rfc\":\"Thu, 03 Jul 2014 23:09:14 +0000\",\"sort_key\":\"1x2Q7U\",\"link\":\"http://mashable.com/2014/07/03/crying-japanese-politician-video/\",\"content\":{\"plain\":\"Crying politicians are nothing new. John Boehner has been known to shed more than his fair share of tears now and again. \\n\\nBut this week, a video of a Japanese politician sobbing throughout a press conference made waves, racking up more than 3 million views on YouTube since it was uploaded on Tuesday. \\n\\nSee also: How to Talk About Politics With Someone Smarter Than You\\n\\nRyutaro Nonomura, a 47-year-old assemblyman, is under fire for allegedly spending government funds (about 3 million yen, or almost $30,000) to take 195 trips to various hot spring resorts without providing receipts. Nonomura openly reported the trips to the assembly, and those trips were not technically illegal, he is being harangued by the public for an explanation. \\n\\nDuring a three-hour press conference on Tuesday at the Hyogo Prefectural Assembly in the Kansai region of Japan, Nonomura screamed at reporters, protesting his innocence and repeatedly shouting, \\\"You don't understand!\\\" and \\\"I want to change this society!\\\" He also pounded his fists on the desk as he wailed and sobbed uncontrollably. \\n\\nOn Twitter, people immediately began making snarky remarks about the video.\\n\\nWant heartfelt apologies from your politicians? This sobbing Japanese politician seems to have set the bar: http://t.co/w4kbAFzf6y\\u2014 Matt Galloway (@mattgallowaycbc) July 3, 2014\\n\\nThis is how I felt after #ALG lost to #GER. \\nhttp://t.co/I8tZZSA0Cl pic.twitter.com/PrrNBepHDS\\u2014 James Wan (@jamesjwan) July 2, 2014\\n\\nNonomura was elected as an assemblyman in 2011. He has not yet confirmed whether he will return the money spent on the trips.\ \n\\nHave something to add to this story? Share it in the comments.\"},\"shares\":{\"facebook\":18,\"google_plus\":2,\"twitter\":6,\"linked_in\":1,\"total\":27},\"comments_count\":0,\"image\":\"http://rack.3.mshcdn.com/media/ ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTk1MHg1MzQjCmUJanBn/b6e5080f/e25/Ryutaro-Nonomura.jpg\",\"responsive_images\":[{\"image\":\"http://rack.2.mshcdn.com/media/ ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTE3NXgxNzUjCmUJanBn/1733bd9e/e25/Ryutaro-Nonomura.jpg\",\"query\":true,\"size\":\"175x175#\"},{\"image\":\"http://rack.1.mshcdn.com/media/ ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTM1MHgzNTAjCmUJanBn/2a9b9753/e25/Ryutaro-Nonomura.jpg\",\"query\":\"(min-resolution: 1.5dppx)\",\"size\":\"350x350#\"},{\"image\":\"http://rack.0.mshcdn.com/media/ ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTgweDgwIwplCWpwZw/db472483/e25/Ryutaro-Nonomura.jpg\",\"query\":\"(max-width: 480px)\",\"size\":\"80x80#\"},{\"image\":\"http://rack.3.mshcdn.com/media/ ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTE2MHgxNjAjCmUJanBn/35ec5489/e25/Ryutaro-Nonomura.jpg\",\"query\":\"(max-width: 480px) and (min-resolution: 1.5dppx)\",\"size\":\"160x160#\"}],\"short_url\":\"http:// on.mash.to/1mdaibS\",\"choice\":false,\"spotlight\":false,\"shortcode_data\":{\"see_also\":[{\"data-url\":\"http://mashable.com/2014/03/12/talking-politics-guide-video/\"}],\"wp_shortcode_manager\":[{}]},\"excerpt\":\"Ryutaro Nonomura put it all on the table.\",\"sponsorship_footer\":true,\"channel\":\"Watercooler\",\"channel_link\":\"http://mashable.com/watercooler/\"},{\"_id\":\"53b5e07eb589e44043000541\",\"id\":\"2014/07/03/world-cup-closing-ceremony-shakira- wyclef-santana\",\"title\":\"World Cup Taps Shakira, Santana and Wyclef for Closing Ceremony\",\"title_tag\":null,\"author\":\"Brian Anthony Hernandez\",\"post_date\":\"2014-07-03T23:00:10+00:00\",\"post_date_rfc\":\"Thu, 03 Jul 2014 23:00:10 +0000\",\"sort_key\":\"1x2PZ8\",\"link\":\"http://mashable.com/2014/07/03/world-cup-closing-ceremony-sh[3] pry(main)>
[4] pry(main)> mash_json = JSON.load(mash_client)
=> {"new"=>
[{"_id"=>"53b5e2a997b2f85f54000204", "id"=>"2014/07/03/crying-japanese-politician-video",
"title"=>"A Hysterically Sobbing Politician Is Sad But Also Kind of Hilarious", "title_tag"=>nil,
"author"=>"Katie Nelson",
"post_date"=>"2014-07-03T23:09:14+00:00",
"post_date_rfc"=>"Thu, 03 Jul 2014 23:09:14 +0000",
"sort_key"=>"1x2Q7U", "link"=>"http://mashable.com/2014/07/03/crying-japanese-politician-video/", "content"=>
{"plain"=>
"Crying politicians are nothing new. John Boehner has been known to shed more than his fair share of tears now and again. \n\nBut this week, a video of a Japanese politician sobbing throughout a press conference made waves,
racking up more than 3 million views on YouTube since it was uploaded on Tuesday. \n\nSee also: How to Talk About Politics With Someone Smarter Than You\n\nRyutaro Nonomura, a 47-year-old assemblyman, is under fire for allegedly spending government funds (about 3 million yen, or almost $30,000) to take 195 trips to various hot spring resorts without providing receipts. Nonomura openly reported the trips to the assembly, and those trips were not technically illegal, he is being harangued by the public for an explanation. \n\nDuring a three-hour press conference on Tuesday at the Hyogo Prefectural Assembly in the Kansai region of Japan, Nonomura screamed at reporters, protesting his innocence and repeatedly shouting, \"You don't understand!\" and \"I want to change this society!\" He also pounded his fists on the desk as he wailed and sobbed uncontrollably. \n\nOn Twitter, people immediately began making snarky remarks about the video.\n\nWant heartfelt apologies from your politicians? This sobbing Japanese politician seems to have set the bar: http://t.co/w4kbAFzf6y— Matt Galloway (@mattgallowaycbc) July 3, 2014\n\nThis is how I felt after #ALG lost to #GER. \nhttp://t.co/I8tZZSA0Cl pic.twitter.com/PrrNBepHDS— James Wan (@jamesjwan) July 2, 2014\n\nNonomura was elected as an assemblyman in 2011. He has not yet confirmed whether he will return the money spent on the trips. \n\nHave something to add to this story? Share it in the comments."},
"shares"=>{"facebook"=>18, "google_plus"=>2, "twitter"=>6, "linked_in"=>1, "total"=>27},
"comments_count"=>0, :
=> {"new"=> [{"_id"=>"53b5e2a997b2f85f54000204",
"id"=>"2014/07/03/crying-japanese-politician-video",
"title"=>"A Hysterically Sobbing Politician Is Sad But Also Kind of Hilarious", "title_tag"=>nil,
"author"=>"Katie Nelson",
"post_date"=>"2014-07-03T23:09:14+00:00",
"post_date_rfc"=>"Thu, 03 Jul 2014 23:09:14 +0000",
"sort_key"=>"1x2Q7U", "link"=>"http://mashable.com/2014/07/03/crying-japanese-politician-video/", "content"=>
{"plain"=>
"Crying politicians are nothing new. John Boehner has been known to shed more than his fair share of tears now and again. \n\nBut this week, a video of a Japanese politician sobbing throughout a press conference made waves,
racking up more than 3 million views on YouTube since it was uploaded on Tuesday. \n\nSee also: How to Talk About Politics With Someone Smarter Than You\n\nRyutaro Nonomura, a 47-yeamblyman, is under fire for allegedly spending government funds (about 3 million yen, or almost $30,000) to take 195 trips to various hot spring resorts without providing receipts. Nonomura openly reported the trips to the assembly, and those trips were not technically illegal, he is being harangued by the public for an explanation. \n\nDuring a three-hour press conference on Tuesday at the Hyogo Prefectural Assembly in the Kansai region of Japan, Nonomura screamed at reporters, protesting his innocence and repeatedly shouting, \"You don't understand!\" and \"I want to change this society!\" He also pounded his fists on the desk as he wailed and sobbed uncontrollably. \n\nOn Twitter, people immediately began making snarky remarks about the video.\n\nWant heartfelt apologies from your politicians? This sobbing Japanese politician seems to have set the bar: http://t.co/w4kbAFzf6y— Matt Galloway (@mattgallowaycbc) July 3, 2014\n\nThis is how I felt after #ALG lost to #GER. \nhttp://t.co/I8tZZSA0Cl pic.twitter.com/PrrNBepHDS— James Wan (@jamesjwan) July 2, 2014\n\nNonomura was elected as an assemblyman in 2011. He has not yet confirmed whether he will return the money spent on the trips.\n\nHave something to add to this story? Share it in the comments."},
"shares"=>{"facebook"=>18, "google_plus"=>2, "twitter"=>6, "linked_in"=>1, "total"=>27},
"comments_count"=>0, "image"=>"http://rack.3.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTk1MHg1MzQjCmUJanBn/b6e5080f/e25/Ryutaro-Nonomura.jpg",
:
=> {"new"=>
[{"_id"=>"53b5e2a997b2f85f54000204", "id"=>"2014/07/03/crying-japanese-politician-video",
"title"=>"A Hysterically Sobbing Politician Is Sad But Also Kind of Hilarious", "title_tag"=>nil,
"author"=>"Katie Nelson",
"post_date"=>"2014-07-03T23:09:14+00:00",
"post_date_rfc"=>"Thu, 03 Jul 2014 23:09:14 +0000",
"sort_key"=>"1x2Q7U", "link"=>"http://mashable.com/2014/07/03/crying-japanese-politician-video/", "content"=>
{"plain"=>
"Crying politicians are nothing new. John Boehner has been known to shed more than his fair share of tears now and again. \n\nBut this week, a video of a Japanese politician sobbing throughout a press conference made waves,
racking up more than 3 million views on YouTube since it was uploaded on Tuesday. \n\nSee also: How to Talk About Politics With Someone Smarter Than You\n\nRyutaro Nonomura, a 47-year-old assemblyman, is under fire for allegedly spending government funds (about 3 million yen, or almost $30,000) to take 195 trips to various hot spring resorts without providing receipts. Nonomura openly reported the trips to the assembly, and those trips were not technically illegal, he is being harangued by the public for an explanation. \n\nDuring a three-hour press conference on Tuesday at the Hyogo Prefectural Assembly in the Kansai region of Japan, Nonomura screamed at reporters, protesting his innocence and repeatedly shouting, \"You don't understand!\" and \"I want to change this society!\" He also pounded his fists on the desk as he wailed and sobbed uncontrollably. \n\nOn Twitter, people immediately began making snarky remarks about the video.\n\nWant heartfelt apologies from your politicians? This sobbing Japanese politician seems to have set the bar: http://t.co/w4kbAFzf6y— Matt Galloway (@mattgallowaycbc) July 3, 2014\n\nThis is how I felt after #ALG lost to #GER. \nhttp://t.co/I8tZZSA0Cl pic.twitter.com/PrrNBepHDS— James Wan (@jamesjwan) July 2, 2014\n\nNonomura was elected as an assemblyman in 2011. He has not yet confirmed whether he will return the money spent on the trips. \n\nHave something to add to this story? Share it in the comments."},
"shares"=>{"facebook"=>18, "google_plus"=>2, "twitter"=>6, "linked_in"=>1, "total"=>27},
"comments_count"=>0, "image"=>"http://rack.3.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTk1MHg1MzQjCmUJanBn/b6e5080f/e25/Ryutaro-Nonomura.jpg", "responsive_images"=>
[{"image"=>"http://rack.2.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTE3NXgxNzUjCmUJanBn/1733bd9e/e25/Ryutaro-Nonomura.jpg", "query"=>true,
"size"=>"175x175#"},
{"image"=>"http://rack.1.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTM1MHgzNTAjCmUJanBn/2a9b9753/e25/Ryutaro-Nonomura.jpg", "query"=>"(min-resolution: 1.5dppx)",
"size"=>"350x350#"},
{"image"=>"http://rack.0.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTgweDgwIwplCWpwZw/db472483/e25/Ryutaro-Nonomura.jpg", "query"=>"(max-width: 480px)",
"size"=>"80x80#"},
{"image"=>"http://rack.3.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTE2MHgxNjAjCmUJanBn/35ec5489/e25/Ryutaro-Nonomura.jpg", "query"=>"(max-width: 480px) and (min-resolution: 1.5dppx)",
"size"=>"160x160#"}],
"short_url"=>"http://on.mash.to/1mdaibS",
"choice"=>false,
"spotlight"=>false,
"shortcode_data"=>{"see_also"=>[{"data-url"=>"http://mashable.com/2014/03/12/talking-politics-guide-video/"}], "wp_shortcode_manager"=>[{}]}, "excerpt"=>"Ryutaro Nonomura put it all on the table.",
"sponsorship_footer"=>true,
[5] pry(main)>
[6] pry(main)> mash_json.class
=> Hash
[7] pry(main)> mash_json.key
ArgumentError: wrong number of arguments (0 for 1) from (pry):5:in `key'
[8] pry(main)> mash_json.keys
=> ["new", "rising", "hot", "channel"]
[9] pry(main)> mash_json[
[9] pry(main)*
[9] pry(main)* end
SyntaxError: unexpected keyword_end, expecting ']' [9] pry(main)> mash_json["hot"]
=> [{"_id"=>"53b5c9d297b2f869e5000608",
"id"=>"2014/07/03/katy-perry-sued-dark-horse-christian-rappers-flame-lawsuit", "title"=>"Katy Perry Sued by Christian Artists Claiming She Stole 'Dark Horse'", "title_tag"=>nil,
"author"=>"Brian Anthony Hernandez",
"post_date"=>"2014-07-03T21:23:23+00:00",

"post_date_rfc"=>"Thu, 03 Jul 2014 21:23:23 +0000",
"sort_key"=>"1x2PcG", "link"=>"http://mashable.com/2014/07/03/katy-perry-sued-dark-horse-christian-rappers-flame-lawsuit/", "content"=>
{"plain"=>
"Four Christian musicians filed a lawsuit against Katy Perry in a federal court this week, claiming her chart-topping hit \"Dark Horse\" ripped off their 2008 song \"Joyful Noise.\"\n\nThe complaint, obtained by Mashable from the
U.S. District Court for the Eastern District of Missouri, refers to the case as a copyright lawsuit with defendants Perry, featured artist Juicy J, Capitol Records and the song's writers and producers.\n\nSee also: Katy Perry Will Write Hillary Clinton a Campaign Song 'If She Needs It'\n\n\"Gray et al v. Perry et al\" could determine whether Perry and company broke copyright-infringement laws or it could instead be settled privately out of court. Perry's team and Capitol Records did not respond for our request for a comment.\n\nThe plaintiffs -- rappers Marcus Gray (a.k.a. Flame), Emanuel Lambert, LeCrae Moore and producer Chike Ojukwu -- filed the complaint July 1 in St. Louis, claiming that their song has been forever smeared by the \"witchcraft, paganism, black magic and Illuminati imagery\" found in Perry's \"Dark Horse\" song and music video (watch below).\n\nFlame's team also did not respond for our request for a comment, but you can compare \"Dark Horse\" to religious rap song \"Joyful Noise\" for yourself right here:\n\n\"Joyful Noise\" is from Flame's Grammy-nominated album Our World: Redeemed.\n\nPerry will face this lawsuit with fellow defendants Juicy J (born Jordan Houston), Lukasz Gottwald, Sarah Theresa Hudson, Max Martin, Henry Russell Walter and Capitol Records, with judge Henry Edward Autrey presiding over the case.\n\nPerry, who recently launched her own record label and signed singer Ferras as its first artist, previously found herself embroiled in a plagiarism uproar last year when people drew similarities between her song \"Roar\" and Sara Bareilles' \"Brave.\"\n\nBONUS: 10 Copycats Who Stirred Up Treble in Music History\n\nHave something to add to this story? Share it in the comments."},
"shares"=>{"twitter"=>916, "facebook"=>84, "linked_in"=>20, "google_plus"=>10, "total"=>1030}, [10] pry(main)>
[11] pry(main)> mash_json["hot"].class
=> Array
[12] pry(main)> mash_json["hot"].first => {"_id"=>"53b5c9d297b2f869e5000608",
"id"=>"2014/07/03/katy-perry-sued-dark-horse-christian-rappers-flame-lawsuit", "title"=>"Katy Perry Sued by Christian Artists Claiming She Stole 'Dark Horse'", "title_tag"=>nil,
"author"=>"Brian Anthony Hernandez",
"post_date"=>"2014-07-03T21:23:23+00:00",
"post_date_rfc"=>"Thu, 03 Jul 2014 21:23:23 +0000",
"sort_key"=>"1x2PcG", "link"=>"http://mashable.com/2014/07/03/katy-perry-sued-dark-horse-christian-rappers-flame-lawsuit/", "content"=>
{"plain"=>
"Four Christian musicians filed a lawsuit against Katy Perry in a federal court this week, claiming her chart-topping hit \"Dark Horse\" ripped off their 2008 song \"Joyful Noise.\"\n\nThe complaint, obtained by Mashable from the
U.S. District Court for the Eastern District of Missouri, refers to the case as a copyright lawsuit with defendants Perry, featured artist Juicy J, Capitol Records and the song's writers and producers.\n\nSee also: Katy Perry Will Write Hillary Clinton a Campaign Song 'If She Needs It'\n\n\"Gray et al v. Perry et al\" could determine whether Perry and company broke copyright-infringement laws or it could instead be settled privately out of court. Perry's team and Capitol Records did not respond for our request for a comment.\n\nThe plaintiffs -- rappers Marcus Gray (a.k.a. Flame), Emanuel Lambert, LeCrae Moore and producer Chike Ojukwu -- filed the complaint July 1 in St. Louis, claiming that their song has been forever smeared by the \"witchcraft, paganism, black magic and Illuminati imagery\" found in Perry's \"Dark Horse\" song and music video (watch below).\n\nFlame's team also did not respond for our request for a comment, but you can compare \"Dark Horse\" to religious rap song \"Joyful Noise\" for yourself right here:\n\n\"Joyful Noise\" is from Flame's Grammy-nominated album Our World: Redeemed.\n\nPerry will face this lawsuit with fellow defendants Juicy J (born Jordan Houston), Lukasz Gottwald, Sarah Theresa Hudson, Max Martin, Henry Russell Walter and Capitol Records, with judge Henry Edward Autrey presiding over the case.\n\nPerry, who recently launched her own record label and signed singer Ferras as its first artist, previously found herself embroiled in a plagiarism uproar last year when people drew similarities between her song \"Roar\" and Sara Bareilles' \"Brave.\"\n\nBONUS: 10 Copycats Who Stirred Up Treble in Music History\n\nHave something to add to this story? Share it in the comments."},
"shares"=>{"twitter"=>916, "facebook"=>84, "linked_in"=>20, "google_plus"=>10, "total"=>1030}, [13] pry(main)> mash_json["hot"][0].class
=> Hash
[14] pry(main)> mash_json["hot"][0].keys
=> ["_id",
"id",
"title", "title_tag", "author", "post_date", "post_date_rfc", "sort_key",
"link",
"content", "shares", "comments_count", "image", "responsive_images", "short_url", "choice", "spotlight", "shortcode_data", "excerpt", "show_sponsorship", "channel", "channel_link"]
[15] pry(main)> mash_json["hot"][0]["content"] => {"plain"=>
"Four Christian musicians filed a lawsuit against Katy Perry in a federal court this week, claiming her chart-topping hit \"Dark Horse\" ripped off their 2008 song \"Joyful Noise.\"\n\nThe complaint, obtained by Mashable from the U.S. District Court for the Eastern District of Missouri, refers to the case as a copyright lawsuit with defendants Perry, featured artist Juicy J, Capitol Records and the song's writers and producers.\n\nSee also: Katy Perry Will Write Hillary Clinton a Campaign Song 'If She Needs It'\n\n\"Gray et al v. Perry et al\" could determine whether Perry and company broke copyright-infringement laws or it could instead be settled privately out of court. Perry's team and Capitol Records did not respond for our request for a comment.\n\nThe plaintiffs -- rappers Marcus Gray (a.k.a. Flame), Emanuel Lambert, LeCrae Moore and producer Chike Ojukwu -- filed the complaint July 1 in St. Louis, claiming that their song has been forever smeared by the \"witchcraft, paganism, black magic and Illuminati imagery\" found in Perry's \"Dark Horse\" song and music video (watch below).\n\nFlame's team also did not respond for our request for a comment, but you can compare \"Dark Horse\" to religious rap song \"Joyful Noise\" for yourself right here:\n\n\"Joyful Noise\" is from Flame's Grammy-nominated album Our World: Redeemed.\n\nPerry will face this lawsuit with fellow defendants Juicy J (born Jordan Houston), Lukasz Gottwald, Sarah Theresa Hudson, Max Martin, Henry Russell Walter and Capitol Records, with judge Henry Edward Autrey presiding over the case.\n\nPerry, who recently launched her own record label and signed singer Ferras as its first artist, previously found herself embroiled in a plagiarism uproar last year when people drew similarities between her song \"Roar\" and Sara Bareilles' \"Brave.\"\n\nBONUS: 10 Copycats Who Stirred Up Treble in Music History\n\nHave something to add to this story? Share it in the comments."}
[16] pry(main)> mash_json.class => Hash
[17] pry(main)> mash_json.class => Hash
[18] pry(main)> mash_json.keys
=> ["new", "rising", "hot", "channel"] [19] pry(main)> mash_json["new"]
=> [{"_id"=>"53b5e2a997b2f85f54000204",
"id"=>"2014/07/03/crying-japanese-politician-video",
"title"=>"A Hysterically Sobbing Politician Is Sad But Also Kind of Hilarious", "title_tag"=>nil,
"author"=>"Katie Nelson",
"post_date"=>"2014-07-03T23:09:14+00:00",
"post_date_rfc"=>"Thu, 03 Jul 2014 23:09:14 +0000",
"sort_key"=>"1x2Q7U", "link"=>"http://mashable.com/2014/07/03/crying-japanese-politician-video/", "content"=>
{"plain"=>
"Crying politicians are nothing new. John Boehner has been known to shed more than his fair share of tears now and again. \n\nBut this week, a video of a Japanese politician sobbing throughout a press conference made waves, racking
up more than 3 million views on YouTube since it was uploaded on Tuesday. \n\nSee also: How to Talk About Politics With Someone Smarter Than You\n\nRyutaro Nonomura, a 47-year-old assemblyman, is under fire for allegedly spending government funds (about 3 million yen, or almost $30,000) to take 195 trips to various hot spring resorts without providing receipts. Nonomura openly reported the trips to the assembly, and those trips were not technically illegal, he is being harangued by the public for an explanation. \n\nDuring a three-hour press conference on Tuesday at the Hyogo Prefectural Assembly in the Kansai region of Japan, Nonomura screamed at reporters, protesting his innocence and repeatedly shouting, \"You don't understand!\" and \"I want to change this society!\" He also pounded his fists on the desk as he wailed and sobbed uncontrollably. \n\nOn Twitter, people immediately began making snarky remarks about the video.\n\nWant heartfelt apologies from your politicians? This sobbing Japanese politician seems to have set the bar: http://t.co/w4kbAFzf6y— Matt Galloway (@mattgallowaycbc) July 3, 2014\n\nThis is how I felt after #ALG lost to #GER. \nhttp://t.co/I8tZZSA0Cl pic.twitter.com/PrrNBepHDS— James Wan (@jamesjwan) July 2, 2014\n\nNonomura was elected as an assemblyman in 2011. He has not yet confirmed whether he will return the money spent on the trips.\n\nHave something to add to this story? Share it in the comments."},
"shares"=>{"facebook"=>18, "google_plus"=>2, "twitter"=>6, "linked_in"=>1, "total"=>27},
"comments_count"=>0, "image"=>"http://rack.3.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTk1MHg1MzQjCmUJanBn/b6e5080f/e25/Ryutaro-Nonomura.jpg", "responsive_images"=>
[{"image"=>"http://rack.2.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTE3NXgxNzUjCmUJanBn/1733bd9e/e25/Ryutaro-Nonomura.jpg", "query"=>true,
"size"=>"175x175#"},
{"image"=>"http://rack.1.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTM1MHgzNTAjCmUJanBn/2a9b9753/e25/Ryutaro-Nonomura.jpg", :...skipping...
[{"image"=>"http://rack.2.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTE3NXgxNzUjCmUJanBn/1733bd9e/e25/Ryutaro-Nonomura.jpg", "query"=>true,://rack.0.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTgweDgwIwplCWpwZw/db472483/e25/Ryutaro-Nonomura.jpg", "size"=>"175x175#"},: 480px)",
{"image"=>"http://rack.1.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTM1MHgzNTAjCmUJanBn/2a9b9753/e25/Ryutaro-Nonomura.jpg", "query"=>"(min-resolution: 1.5dppx)",dia/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTE2MHgxNjAjCmUJanBn/35ec5489/e25/Ryutaro-Nonomura.jpg", "size"=>"350x350#"},: 480px) and (min-resolution: 1.5dppx)",
{"image"=>"http://rack.0.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTgweDgwIwplCWpwZw/db472483/e25/Ryutaro-Nonomura.jpg", "query"=>"(max-width: 480px)",mdaibS",
"size"=>"80x80#"},
{"image"=>"http://rack.3.mshcdn.com/media/ZgkyMDE0LzA3LzAzL2QwL1J5dXRhcm9Ob25vLmQ2YjIxLmpwZwpwCXRodW1iCTE2MHgxNjAjCmUJanBn/35ec5489/e25/Ryutaro-Nonomura.jpg", "query"=>"(max-width: 480px) and (min-resolution: 1.5dppx)",om/2014/03/12/talking-politics-guide-video/"}], "wp_shortcode_manager"=>[{}]}, "size"=>"160x160#"}],mura put it all on the table.",
"short_url"=>"http://on.mash.to/1mdaibS",
"choice"=>false,rcooler",
"spotlight"=>false,tp://mashable.com/watercooler/"}, "shortcode_data"=>{"see_also"=>[{"data-url"=>"http://mashable.com/2014/03/12/talking-politics-guide-video/"}], "wp_shortcode_manager"=>[{}]}, "excerpt"=>"Ryutaro Nonomura put it all on the table.",clef-santana",
"sponsorship_footer"=>true,akira, Santana and Wyclef for Closing Ceremony", "channel"=>"Watercooler", "channel_link"=>"http://mashable.com/watercooler/"},
{"_id"=>"53b5e07eb589e44043000541", "id"=>"2014/07/03/world-cup-closing-ceremony-shakira-wyclef-santana",

"title"=>"World Cup Taps Shakira, Santana and Wyclef for Closing Ceremony",
"title_tag"=>nil,
:(pry) output error: Interrupt :
: