{"id":95,"date":"2007-01-11T23:12:57","date_gmt":"2007-01-11T22:12:57","guid":{"rendered":"http:\/\/blog.pczone.be\/?p=95"},"modified":"2007-01-12T10:19:58","modified_gmt":"2007-01-12T09:19:58","slug":"python-commandline","status":"publish","type":"post","link":"https:\/\/blog.pczone.be\/?p=95","title":{"rendered":"Python Commandline"},"content":{"rendered":"<p>Mostly when I code, I use java,c# or sometimes php. But now and then I use python. Today I wanted to download some podcasts that I hadn&#8217;t listen to in a while. <em>(Read the other posts to know why)<\/em> So I wanted to do a bulk download, the mp3z were named like xxx010.mp and I wanted to download up to 30 or so.<br \/>\nI gave the pyhton commandline an go (been a while). How could I forget such a nice feature.<\/p>\n<pre>\r\ni=10\r\nfor x range(20):\r\n\tprint \"xxx0\"+str(i+x)+\".mp3\"\r\n<\/pre>\n<p>copy paste it into a textfile and wget -i thefile.txt<\/p>\n<p><strong>Sweet<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mostly when I code, I use java,c# or sometimes php. But now and then I use python. Today I wanted to download some podcasts that I hadn&#8217;t listen to in a while. (Read the other posts to know why) So I wanted to do a bulk download, the mp3z were named like xxx010.mp and I &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.pczone.be\/?p=95\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Python Commandline&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[4],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-informatics"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3U9nk-1x","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pczone.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=95"}],"version-history":[{"count":0,"href":"https:\/\/blog.pczone.be\/index.php?rest_route=\/wp\/v2\/posts\/95\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pczone.be\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pczone.be\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pczone.be\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}