{"id":109,"date":"2015-05-16T00:14:10","date_gmt":"2015-05-16T00:14:10","guid":{"rendered":"http:\/\/www.reisun.org\/?p=109"},"modified":"2015-05-16T00:22:57","modified_gmt":"2015-05-16T00:22:57","slug":"downloading-retro-magazines-from-internet-archive","status":"publish","type":"post","link":"https:\/\/www.reisun.org\/?p=109","title":{"rendered":"Downloading Retro Magazines from Internet Archive"},"content":{"rendered":"<p>&#160;<\/p>\n<p>I\u00e2\u20ac\u2122ve recently gotten interested in retro-Apple II things. I owned a ][+ and a IIgs as a kid and also experimented with emulators (Applewin and KEGS32) later on. <\/p>\n<p>&#160;<\/p>\n<p>One of the many magazines I subscribed to back then was Open Apple. It struck just the right balance between being informative and being humorous\/witty, in the vein of the Beagle Bros products and literature. (I still remember sending a letter to Bert Kersey and getting a personal response)<\/p>\n<p>&#160;<\/p>\n<p>The <a href=\"http:\/\/www.archive.org\">Internet archive<\/a> has been amassing quite the collection of Apple II material, including scans of books and magazines. I still have a binder somewhere of original Open Apple magazines, but it is much more convenient to read them in pdf form.<\/p>\n<p>&#160;<\/p>\n<p>I am also quite the python fan, having used it since the 1.x days. There is a python module, <a href=\"https:\/\/pypi.python.org\/pypi\/internetarchive\">internetarchive<\/a>, that quite effectively allows you to search and download collections from the Internet Archive. Most examples I\u00e2\u20ac\u2122ve seen use the command line script <em>ia<\/em>, but&#160; I (erroneously) thought it would be difficult to get working on a Windows platform. I decided to use the library directly in python to search for and download the entire open apple collection, in pdf (and .epub) format.<\/p>\n<p>&#160;<\/p>\n<p>What follows is the short program in interactive mode I used. I ran this twice, first without the no_directory parameter in get_item and then with, so that I could have two sets of the collection: one for archival in neat directory structure, and another in one directory to transfer to calibre and eventually my kindles. <\/p>\n<p>&#160;<\/p>\n<blockquote>\n<p><font face=\"Courier New\">&gt;&gt;&gt; from internetarchive import get_item, search_items<\/font><\/p>\n<p><font face=\"Courier New\">&gt;&gt;&gt; search=search_items(&#8216;collection:openapplemagazine&#8217;)<\/font><\/p>\n<p><font face=\"Courier New\">&gt;&gt;&gt; search.num_found<\/font><\/p>\n<p><font face=\"Courier New\">&gt;&gt;&gt; for result in search:       <br \/>&#8230;&#160;&#160;&#160;&#160; try:        <br \/>&#8230;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; get_item(result[&#8216;identifier&#8217;]).download(glob_pattern= &#8216;*.pdf&#8217;, no_directory=True)        <br \/>&#8230;&#160;&#160;&#160;&#160; except: # silently catch all errors (most commonly, IOErrors if file exists already)        <br \/>&#8230;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; pass<\/font><\/p>\n<\/blockquote>\n<p><font style=\"background-color: #3a3e3e\"><\/font><\/p>\n<p><font style=\"background-color: #3a3e3e\" face=\"Courier New\"><font face=\"Arial\">Another magazine that I remember, but not as fondly as I do Open Apple, is Softalk. The search term for that is collection:softalkapple.<\/font><\/font><\/p>\n<p><font style=\"background-color: #3a3e3e\" face=\"Courier New\">&#160;<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#160; I\u00e2\u20ac\u2122ve recently gotten interested in retro-Apple II things. I owned a ][+ and a IIgs as a kid and also experimented with emulators (Applewin and KEGS32) later on. &#160; One of the many magazines I subscribed to back then was Open Apple. It struck just the right balance between being informative and being humorous\/witty, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,19],"tags":[],"class_list":["post-109","post","type-post","status-publish","format-standard","hentry","category-apple2","category-python"],"_links":{"self":[{"href":"https:\/\/www.reisun.org\/index.php?rest_route=\/wp\/v2\/posts\/109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reisun.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reisun.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reisun.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reisun.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=109"}],"version-history":[{"count":0,"href":"https:\/\/www.reisun.org\/index.php?rest_route=\/wp\/v2\/posts\/109\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.reisun.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reisun.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reisun.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}