{"id":2493,"date":"2019-07-08T09:13:22","date_gmt":"2019-07-08T00:13:22","guid":{"rendered":"https:\/\/www.codedojo.com\/?p=2493"},"modified":"2019-07-08T09:20:21","modified_gmt":"2019-07-08T00:20:21","slug":"heres-a-chrome-extension-that-scrapes-sonys-website-to-get-a-list-of-owned-playstation-games","status":"publish","type":"post","link":"https:\/\/www.codedojo.com\/?p=2493","title":{"rendered":"Here&#8217;s a Chrome extension that scrapes Sony&#8217;s website to get a list of owned Playstation games"},"content":{"rendered":"<p>If you&#8217;ve ever wanted a list of your digitally purchased\/downloaded Playstation games (I have over 500 &lt;sigh&gt;) I wrote this chrome extension that can do it as a test for something else.<\/p>\n<p><a href=\"https:\/\/www.codedojo.com\/wp-content\/uploads\/2019\/07\/psgamedatascraper.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2494\" src=\"https:\/\/www.codedojo.com\/wp-content\/uploads\/2019\/07\/psgamedatascraper.jpg\" alt=\"\" width=\"346\" height=\"369\" srcset=\"https:\/\/www.codedojo.com\/wp-content\/uploads\/2019\/07\/psgamedatascraper.jpg 346w, https:\/\/www.codedojo.com\/wp-content\/uploads\/2019\/07\/psgamedatascraper-281x300.jpg 281w\" sizes=\"auto, (max-width: 346px) 100vw, 346px\" \/><\/a><\/p>\n<p>It&#8217;s crap because it will break if the Sony site changes at all, as well as missing games that weren&#8217;t purchased digitally (disc games, for example) but hey, here it is.<\/p>\n<h1><a href=\"https:\/\/github.com\/SethRobinson\/PSGameDataScraper\">Click here for Github source &amp; install\/usage instructions<\/a><\/h1>\n<p>The data it creates is in json format and looks like this:<\/p>\n<pre>\"games\": [\r\n    {\r\n      \"title\": \"Judgment\",\r\n      \"Size\": \"30.75GB\",\r\n      \"PurchaseDate\": \"7\/4\/2019\",\r\n      \"Platforms\": [\r\n        \"PS4\"\r\n      ],\r\n      \"productID\": \"UP0177-CUSA13186_00-JUDGMENTRYUGAENG\"\r\n    },\r\n    {\r\n      \"title\": \"Borderlands: The Handsome Collection\",\r\n      \"Size\": \"28.64GB\",\r\n      \"PurchaseDate\": \"7\/4\/2019\",\r\n      \"Platforms\": [\r\n        \"PS4\"\r\n      ],\r\n      \"productID\": \"UP1001-CUSA01401_00-BORDERLANDSHDCOL\"\r\n    }, ... and so on<\/pre>\n<p>If I cross referenced it with trophy data it would be more accurate.\u00a0 If anyone knows a better way to get at this data (one that doesn&#8217;t break if the user isn&#8217;t using English for example&#8230;) please let me know.<\/p>\n<p>No plans to add anything else to this but\u00a0 wanted to throw up a post about it so anybody else working on something similar could find the source if needed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve ever wanted a list of your digitally purchased\/downloaded Playstation games (I have over 500 &lt;sigh&gt;) I wrote this chrome extension that can do it as a test for something else. It&#8217;s crap because it will break if the Sony site changes at all, as well as missing games that weren&#8217;t purchased digitally (disc [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[],"class_list":["post-2493","post","type-post","status-publish","format-standard","hentry","category-development","category-tech-tips"],"_links":{"self":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts\/2493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2493"}],"version-history":[{"count":9,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts\/2493\/revisions"}],"predecessor-version":[{"id":2503,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts\/2493\/revisions\/2503"}],"wp:attachment":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2493"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}