{"id":5282,"date":"2013-11-25T05:05:01","date_gmt":"2013-11-24T18:05:01","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=5282"},"modified":"2013-11-25T05:05:01","modified_gmt":"2013-11-24T18:05:01","slug":"linux-curl-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/linux-curl-primer-tutorial\/","title":{"rendered":"Linux cURL Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Linux\/curl\/Linux_curl.jpg\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Linux cURL Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Linux\/curl\/Linux_curl.jpg\" title=\"Linux cURL Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Linux cURL Primer Tutorial<\/p><\/div>\n<p>The Linux (or unix) command <a target=_blank title='cURL information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/CURL'><i>cURL<\/i><\/a> is a powerful command line tool, that, if installed, may help you garner data by means of <a target=_blank title='web scraping informatin from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Web_scraping'>data scraping<\/a> (or screen scraping, or, as in our case, web scraping) from the web, within the Linux command line environment.<\/p>\n<p>You link this to batch processing ideas and a lot of programmer mouth watering will result &#8230; sometimes not a pretty sight &#8230; and it is better to have the watermelon at the ready immediately, though even there might be some ettiquette rules that don&#8217;t cover the seeds &#8230; am sure Demtel sell a seed remover &#8230; but one digresses.   Unfortunately, this will just have to be one of those graphs called <a href='#myifx' onmouseover=' var itf=document.getElementById(\"myifx\"); itf.src = \"http:\/\/www.rjmprogramming.com.au\/PHP\/Sparkline\/sparkline.php?title=Para&#038;task=Para&#038;desc=Para&#038;data=,%20[42,42]%20,%20[42,42]%20,%20[42,42]\"; itf.style.display=\"block\";'>&#8220;para&#8221;<\/a> &#8230; chortle, chortle.  <iframe id='myifx' src='javascript:false;' style='display:none;width:600px;height:600px;'><\/iframe><\/p>\n<p>Link to some programming Mac Terminal Bash script file you could call <a target=_blank title='curl_as_a_cucumber.sh' href='http:\/\/www.rjmprogramming.com.au\/Linux\/curl\/curl_as_a_cucumber.sh_GETME'>curl_as_a_cucumber.sh<\/a> as you see fit, to try what the tutorial does (which is to extract the HTML element id= values from a webpage), or if you need advice on installing cURL &#8230; try <a target=_blank title='cURL install on Linux' href='http:\/\/thepoolofsoftware.blogspot.com.au\/2013\/03\/installing-curl-on-linux-and-mac-os.html'>this<\/a>.<\/p>\n<p>Background reading could be:<\/p>\n<ul>\n<li><a target=_blank title='awk' href='http:\/\/linux.die.net\/man\/1\/awk'>awk<\/a><\/li>\n<li><a target=_blank title='sed' href='http:\/\/linux.die.net\/man\/1\/sed'>sed<\/a><\/li>\n<li><a target=_blank title='tr' href='http:\/\/linux.die.net\/man\/1\/tr'>tr<\/a><\/li>\n<li><a target=_blank title='grep' href='http:\/\/linux.die.net\/man\/1\/grep'>grep<\/a><\/li>\n<li><a target=_blank title='cut' href='http:\/\/linux.die.net\/man\/1\/cut'>cut<\/a><\/li>\n<li><a target=_blank title='more' href='http:\/\/linux.die.net\/man\/1\/more'>more<\/a><\/li>\n<\/ul>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d5282' onclick='var dv=document.getElementById(\"d5282\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=Linux\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d5282' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Linux (or unix) command cURL is a powerful command line tool, that, if installed, may help you garner data by means of data scraping (or screen scraping, or, as in our case, web scraping) from the web, within the &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/linux-curl-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,29,37],"tags":[132,234,284,707,885,997,1105,1138,1319,1339],"class_list":["post-5282","post","type-post","status-publish","format-standard","hentry","category-elearning","category-operating-system","category-tutorials","tag-bash","tag-command-line","tag-curl","tag-linux","tag-operating-system-2","tag-programming","tag-script","tag-shell","tag-tutorial","tag-unix"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/5282"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=5282"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/5282\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=5282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=5282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=5282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}