{"id":342,"date":"2006-08-03T22:35:12","date_gmt":"2006-08-03T22:35:12","guid":{"rendered":"http:\/\/beta.robertprice.co.uk\/robblog\/2006\/08\/introducing_acme_terror_uk-shtml\/"},"modified":"2006-08-03T22:35:12","modified_gmt":"2006-08-03T22:35:12","slug":"introducing_acme_terror_uk-shtml","status":"publish","type":"post","link":"https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/","title":{"rendered":"Introducing Acme::Terror::UK"},"content":{"rendered":"<p>\nThere is a lot of fuss in the press at present about the current terrorist threat to the UK.\n<\/p>\n<p>\nThe government has put the current threat level on a few of it&#8217;s websites. These are&#8230;\n<\/p>\n<ul>\n<li><a href=\"http:\/\/www.homeoffice.gov.uk\/security\/current-threat-level\/\">Home Office &#8211; Current Threat Level<\/a><\/li>\n<li><a href=\"http:\/\/www.intelligence.gov.uk\/\">UK Intelligence Community Online<\/a><\/li>\n<li><a href=\"http:\/\/www.mi5.gov.uk\/output\/Page4.html\">MI5<\/a><\/li>\n<\/ul>\n<p>\nThe US government has had provided it&#8217;s threat levels to the public for a while, and there are various ways to access this, incuding a <a href=\"http:\/\/www.perl.com\/\">Perl<\/a> module called <a href=\"http:\/\/search.cpan.org\/~mrdelayer\/Acme-Terror\/\">Acme::Terror<\/a>.\n<\/p>\n<p>\nNow the UK has this information online, I decided to provide the UK with it&#8217;s own version of this Perl module, which I&#8217;ve rather originally decided to call <a href=\"http:\/\/search.cpan.org\/~rprice\/Acme-Terror-UK\/\">Acme::Terror::UK<\/a>.\n<\/p>\n<p>\nIt&#8217;s really simple to use the module. For example, this small bit of code will fetch and display the current UK threat level.\n<\/p>\n<div class=\"code\"><code>use Acme::Terror::UK;<br \/>\nmy $t = Acme::Terror::UK-&gt;new();  # create new Acme::Terror::UK object<br \/>\nmy $level = $t-&gt;fetch; # fetch the current terror level<br \/>\nprint \"Current terror alert level is: $leveln\";<br \/>\n<\/code><\/div>\n<p>\nThe code goes off to the home office site behind the scenes and screen scrapes the page to get the current UK threat level as the UK government doesn&#8217;t currently provide and automated feed of this information. This makes the module vulnerable to any design changes on the page, but it works for now and that&#8217;s the main thing.\n<\/p>\n<p>\nThere are 5 levels, these are&#8230;\n<\/p>\n<ul>\n<li>CRITICAL &#8211; an attack is expected imminently<\/li>\n<li>SEVERE &#8211; an attack is likely<\/li>\n<li>SUBSTANTIAL &#8211; an attack is a strong possibility<\/li>\n<li>MODERATE &#8211; an attack is possible but not likely<\/li>\n<li>LOW &#8211; an attack is unlikely<\/li>\n<\/ul>\n<p>\nAt the time of writing, Acme::Terror::UK informs me the current threat level is SEVERE.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is a lot of fuss in the press at present about the current terrorist threat to the UK. The government has put the current threat level on a few of it&#8217;s websites. These are&#8230; Home Office &#8211; Current Threat Level UK Intelligence Community Online MI5 The US government has had provided it&#8217;s threat levels &hellip; <a href=\"https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Introducing Acme::Terror::UK&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[2],"tags":[37,47,75],"class_list":["post-342","post","type-post","status-publish","format-standard","hentry","category-dev","tag-misc","tag-perl","tag-web-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Introducing Acme::Terror::UK - Robert Price<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Introducing Acme::Terror::UK - Robert Price\" \/>\n<meta property=\"og:description\" content=\"There is a lot of fuss in the press at present about the current terrorist threat to the UK. The government has put the current threat level on a few of it&#8217;s websites. These are&#8230; Home Office &#8211; Current Threat Level UK Intelligence Community Online MI5 The US government has had provided it&#8217;s threat levels &hellip; Continue reading &quot;Introducing Acme::Terror::UK&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/\" \/>\n<meta property=\"og:site_name\" content=\"Robert Price\" \/>\n<meta property=\"article:published_time\" content=\"2006-08-03T22:35:12+00:00\" \/>\n<meta name=\"author\" content=\"rob\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rob\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/introducing_acme_terror_uk-shtml\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/introducing_acme_terror_uk-shtml\\\/\"},\"author\":{\"name\":\"rob\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\"},\"headline\":\"Introducing Acme::Terror::UK\",\"datePublished\":\"2006-08-03T22:35:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/introducing_acme_terror_uk-shtml\\\/\"},\"wordCount\":257,\"keywords\":[\"Misc\",\"Perl\",\"Web Development\"],\"articleSection\":[\"Dev\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/introducing_acme_terror_uk-shtml\\\/\",\"url\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/introducing_acme_terror_uk-shtml\\\/\",\"name\":\"Introducing Acme::Terror::UK - Robert Price\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#website\"},\"datePublished\":\"2006-08-03T22:35:12+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/introducing_acme_terror_uk-shtml\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/introducing_acme_terror_uk-shtml\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/introducing_acme_terror_uk-shtml\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introducing Acme::Terror::UK\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#website\",\"url\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/\",\"name\":\"Robert Price\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.robertprice.co.uk\\\/robblog\\\/#\\\/schema\\\/person\\\/fac6d5b076e0e14e1fb13e15b542a6c5\",\"name\":\"rob\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g\",\"caption\":\"rob\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Introducing Acme::Terror::UK - Robert Price","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/","og_locale":"en_GB","og_type":"article","og_title":"Introducing Acme::Terror::UK - Robert Price","og_description":"There is a lot of fuss in the press at present about the current terrorist threat to the UK. The government has put the current threat level on a few of it&#8217;s websites. These are&#8230; Home Office &#8211; Current Threat Level UK Intelligence Community Online MI5 The US government has had provided it&#8217;s threat levels &hellip; Continue reading \"Introducing Acme::Terror::UK\"","og_url":"https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/","og_site_name":"Robert Price","article_published_time":"2006-08-03T22:35:12+00:00","author":"rob","twitter_card":"summary_large_image","twitter_misc":{"Written by":"rob","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/#article","isPartOf":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/"},"author":{"name":"rob","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5"},"headline":"Introducing Acme::Terror::UK","datePublished":"2006-08-03T22:35:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/"},"wordCount":257,"keywords":["Misc","Perl","Web Development"],"articleSection":["Dev"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/","url":"https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/","name":"Introducing Acme::Terror::UK - Robert Price","isPartOf":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/#website"},"datePublished":"2006-08-03T22:35:12+00:00","author":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5"},"breadcrumb":{"@id":"https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.robertprice.co.uk\/robblog\/introducing_acme_terror_uk-shtml\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.robertprice.co.uk\/robblog\/"},{"@type":"ListItem","position":2,"name":"Introducing Acme::Terror::UK"}]},{"@type":"WebSite","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#website","url":"https:\/\/www.robertprice.co.uk\/robblog\/","name":"Robert Price","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.robertprice.co.uk\/robblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.robertprice.co.uk\/robblog\/#\/schema\/person\/fac6d5b076e0e14e1fb13e15b542a6c5","name":"rob","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6f0eb511179100a4e968abc70403e33686e6ab3e992e392bedd2ccac01da666c?s=96&d=mm&r=g","caption":"rob"}}]}},"_links":{"self":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/comments?post=342"}],"version-history":[{"count":0,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/media?parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/categories?post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.robertprice.co.uk\/robblog\/wp-json\/wp\/v2\/tags?post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}