packt-joeld / tutorial-1

How to Write a Screen Scraper: 1


Contributors packt-joeld

Last run failed with status code 998.

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... Hello 0 Hello 1 Hello 2 Hello 3 Hello 4 Hello 5 Hello 6 Hello 7 Hello 8 Hello 9 <!DOCTYPE html> <html> <head> <title> ED Trolley Watch/Ward Watch Figures below for 31st August 2016</title> <meta http-equiv="Cache-control" content="no-cache" /> <meta http-equiv="pragma" content="no-cache" /> <meta http-equiv="expires" content="-1" /> <meta name="robots" content="NOODP" /> <meta name="googlebot" content="NOODP" /> <meta name="keywords" content="INMO,INMO.IE,inmo,inmo.ie,ED Trolley Watch/Ward Watch Figures below for 31st August 2016" /> <meta name="description" content="These are the daily trolley and ward watch figures for the republic of Ireland. Trolley Watch, which commenced in late 2004, relates to trolleys in Emergency Departments. Ward Watch, launched in April 2013, is a count of the number of additional patients on beds, trolleys or chairs, on inpatient wards/units above the stated complement of that ward/unit and provides a picture of whole hospital overcrowding." /> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta property="og:locale" content="en_US" /> <meta property="og:type" content="article" /> <meta property="og:url" content="http://inmo.ie/6022" /> <meta property="og:image" content="https://www.inmo.ie/Content/Images/ImageGallery/graph.jpg" /> <meta property="og:description" content="These are the daily trolley and ward watch figures for the republic of Ireland. Trolley Watch, which commenced in late 2004, relates to trolleys in Emergency Departments. Ward Watch, launched in April 2013, is a count of the number of additional patients on beds, trolleys or chairs, on inpatient wards/units above the stated complement of that ward/unit and provides a picture of whole hospital overcrowding." /> <meta property="og:title" content="ED Trolley Watch/Ward Watch Figures below for 31st August 2016" /> <meta name="twitter:description" content="These are the daily trolley and ward watch figures for the republic of Ireland. Trolley Watch, which commenced in late 2004, relates to trolleys in Emergency Departments. Ward Watch, launched in April 2013, is a count of the number of additional patients on beds, trolleys or chairs, on inpatient wards/units above the stated complement of that ward/unit and provides a picture of whole hospital overcrowding."> <meta name="twitter:image:src" content="https://www.inmo.ie/Content/Images/ImageGallery/graph.jpg"> <meta name="twitter:domain" content="http://inmo.ie/6022"> <meta name="twitter:title" content="ED Trolley Watch/Ward Watch Figures below for 31st August 2016"> <link rel="stylesheet" type="text/css" href="/Content/INMOGallery/GammaGallery/css/style.css" /> <link href="/Content/css/bootstrap.min.css" rel="stylesheet" type="text/css"/> <link href="/Content/css/MyStyles.css" rel="stylesheet" type="text/css"/> <link href="/Content/SiteThis.css" rel="stylesheet" type="text/css"/> <link rel="stylesheet" href="/Scripts/DateTimePickerScripts/jquery.datetimepicker.css" /> <link rel="SHORTCUT ICON" href="/inmo_new.ico" /> </head> <body> <script src="/Scripts/GoogleSearch.js" type="text/javascript"></script> <script src="/Scripts/JqueryCDnToolTip.js"></script> <script src="/Scripts/CodeJquery.js"></script> <script src="/Content/bxslider/jquery.bxslider.min.js"></script> <script src="/Scripts/CodeJqueryMin.js"></script> <script src="/Scripts/js/bootstrap.min.js" type="text/javascript"></script> <script src="/Scripts/js/bootstrap.js" type="text/javascript"></script> <script src="/Scripts/jquery.min.js" type="text/javascript"></script> <script src="/Content/INMOGallery/GammaGallery/js/modernizr.custom.70736.js"></script> <noscript> <link rel="stylesheet" type="text/css" href="/Content/INMOGallery/GammaGallery/css/noJS.css" /> </noscript> <script src="/Scripts/googleApis.js"></script> <script src="/Content/INMOGallery/GammaGallery/js/jquery.masonry.min.js"></script> <script src="/Content/INMOGallery/GammaGallery/js/jquery.history.js"></script> <script src="/Content/INMOGallery/GammaGallery/js/js-url.min.js"></script> <script src="/Content/INMOGallery/GammaGallery/js/jquerypp.custom.js"></script> <script src="/Content/INMOGallery/GammaGallery/js/gamma.js"></script> <script src="/Scripts/jquery-ui.min.js" type="text/javascript"></script> <script src="/Scripts/site.js" type="text/javascript"></script> <script src="/Scripts/jquery.ui.datepicker-en-GB.js" type="text/javascript"></script> <script src="/Scripts/NewsPlayer.js" type="text/javascript"></script> <script src="/Scripts/MessageBox.js" type="text/javascript"></script> <script src="/Scripts/jquery.pngFix.js" type="text/javascript"></script> <script src="/Scripts/jquery.bgiframe.min.js" type="text/javascript"></script> <script src="/Scripts/jquery.autocomplete.js" type="text/javascript"></script> <script src="/Scripts/jquery.cookie.js" type="text/javascript"></script> <script src="/Scripts/tooltip.js" type="text/javascript"></script> <script src="/Scripts/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script> <script src="/Scripts/jquery.validate.min.js" type="text/javascript"></script> <script src="/Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script> <script src="/Scripts/galleria-1.2.3.min.js" type="text/javascript"></script> <link href="/Content/bxslider/bxslider.css" rel="stylesheet" /> <link href="/Content/jquery-ui.css" rel="stylesheet" /> <script src="/Scripts/jssor.slider.mini.js"></script> <script type="text/javascript"> var $j = jQuery; </script> <div class="container-fluid row search-bg-container-fluid"> <div class="container"> <div class="col-lg-4 col-md-6 col-sm-6 col-xs-12"> <div class="clear-form" style="margin: 22px 0px 5px 0px;"> <img src="/images/inmo-logo.png" class="img-responsive"> </div> </div> <div class="col-lg-8 col-md-6 col-sm-6 col-xs-12"> <div class="top-bar-bg"> <ul style="float:left;"> <li class="hidden-xs" title="Instagram"> <style>.ig-b- { display: inline-block; } .ig-b- img { visibility: hidden; } /*.ig-b-:hover { background-position: 0 -60px; } .ig-b-:active { background-position: 0 -120px; }*/ .ig-b-16 { width: 20px; height: 20px; background: url(../../Image/instagram.png) no-repeat 0 0; } @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) { .ig-b-16 { background-image: url(../../Image/instagram.png); } }</style> <a href="https://www.instagram.com/inmo_irl/?ref=badge" class="media-top-icon-instagram"></a> </li> <li class="hidden-xs" title="Trolley Ward/Watch"><a class="media-top-icon" href="https://www.inmo.ie/6022">&nbsp;</a></li> <li class="hidden-xs" title="RSS Feed"><a class="rss-top-icon" href="https://www.inmo.ie/Feed/RSS">&nbsp;</a></li> <li class="hidden-xs" title="Twitter"><a class="twitter-top-icon" href="https://twitter.com/INMO_IRL">&nbsp; </a></li> <li class="hidden-xs" title="Facebook"><a class="facebook-top-icon" href="https://www.facebook.com/irishnursesandmidwivesorganisation">&nbsp; </a></li> <li class="hidden-xs" title="Press Release"><a class="press-release-icon" href="https://www.inmo.ie/217">&nbsp; </a></li> <li class="hidden-xs" title="Youtube"><a class="alert-icon" href="https://www.youtube.com/channel/UC4Lmbp4b8m_1XVtrqppo85A">&nbsp; </a></li> <li ><a class="login-icon" href="javascript:void(0);"> <a class="log-on-link" href="/L">Login</a></a></li> </ul> <div style="float:left;"> <ul> <li class="hidden-xs searchbox" style="display:none;"><input placeholder="Search" onkeypress="return submitenter(this,event)" type="text" id="txtSearchHead"/></li> <li class="hidden-xs" ><a class="searchBtn" href="javascript:toggleSearchField();" >&nbsp;</a></li> </ul> </div> </div> </div> </div> </div> <link href="/Content/css/flexnav.css" rel="stylesheet" /> <div class="container-fluid" style="background-color:#444444;"> <div class="container" style="z-index:999999"> <header id="site-header"> <div class="menu-button">Menu <span class="touch-button active" style="font-size: 12px; top:12px; text-align: right;"><i class="glyphicon glyphicon-menu-down"></i></span></div> <nav> <ul data-breakpoint="2000" class="flexnav"> <li><a href="/0">Home</a></li> <li id="7826" ><a href="/Membership" style="margin-right:10px;">Membership</a> <ul id="SubmenuContaner7826" style="z-index:9999999; padding-top:10px;display:none;" class="SubmenuesContainer"></ul> <span onclick="GetSubMenu(7826);" class="DropDownGaliphIcon"><i class="glyphicon glyphicon-menu-down"></i></span> </li> <li id="7859" ><a href="/Pay_Rights" style="margin-right:10px;">Pay/Rights</a> <ul id="SubmenuContaner7859" style="z-index:9999999; padding-top:10px;display:none;" class="SubmenuesContainer"></ul> <span onclick="GetSubMenu(7859);" class="DropDownGaliphIcon"><i class="glyphicon glyphicon-menu-down"></i></span> </li> <li id="7808" ><a href="/Education" style="margin-right:10px;">Education</a> <ul id="SubmenuContaner7808" style="z-index:9999999; padding-top:10px;display:none;" class="SubmenuesContainer"></ul> <span onclick="GetSubMenu(7808);" class="DropDownGaliphIcon"><i class="glyphicon glyphicon-menu-down"></i></span> </li> <li id="3" ><a href="/Industrial_Relations" style="margin-right:10px;">Industrial Relations</a> <ul id="SubmenuContaner3" style="z-index:9999999; padding-top:10px;display:none;" class="SubmenuesContainer"></ul> <span onclick="GetSubMenu(3);" class="DropDownGaliphIcon"><i class="glyphicon glyphicon-menu-down"></i></span> </li> <li id="7771" ><a href="/Media_ED_ADC" style="margin-right:10px;">Media/ED/ADC</a> <ul id="SubmenuContaner7771" style="z-index:9999999; padding-top:10px;display:none;" class="SubmenuesContainer"></ul> <span onclick="GetSubMenu(7771);" class="DropDownGaliphIcon"><i class="glyphicon glyphicon-menu-down"></i></span> </li> <li id="6889" ><a href="/Campaigns" style="margin-right:10px;">Campaigns</a> <ul id="SubmenuContaner6889" style="z-index:9999999; padding-top:10px;display:none;" class="SubmenuesContainer"></ul> <span onclick="GetSubMenu(6889);" class="DropDownGaliphIcon"><i class="glyphicon glyphicon-menu-down"></i></span> </li> <li id="1" ><a href="/Contact" style="margin-right:10px;">Contact</a> <ul id="SubmenuContaner1" style="z-index:9999999; padding-top:10px;display:none;" class="SubmenuesContainer"></ul> <span onclick="GetSubMenu(1);" class="DropDownGaliphIcon"><i class="glyphicon glyphicon-menu-down"></i></span> </li> <li id="MoreMenuLi" ><a id='moreBtnn' href='javascript:showHideMoreItems();' style=" margin-right: 10px;">More </a> <ul style="z-index: 999999999999; padding-top: 10px;display:none; width:210px;" id="MoreBtnContainer"> <li id=7975 style="padding:0px; min-width:210px; overflow:visible;" class="item-with-ul "><a href="/Social_Policy">Social Policy</a><ul id=SubmenuContaner7975 style="z-index:9999999; padding-top:10px;"></ul><span onclick="GetSubMenu(7975);" class="DropDownGaliphIcon" style="z-index:999; right:10px; top:7px;"><i class="glyphicon glyphicon-menu-right hidden-xs hidden-sm hidden-md"></i><i class="glyphicon glyphicon-menu-down hidden-lg"></i></span></li> </ul> <span style="font-size: 12px;" class="DropDownGaliphIcon" onclick="showHideMoreItems();"> <i class="glyphicon glyphicon-menu-down"></i></span> </li> </ul> </nav> </header> </div> </div> <script src="/Scripts/js/jquery.flexnav.js"></script> <script type="text/javascript"> jQuery(document).ready(function($) { // initialize FlexNav $(".flexnav").flexNav(); $(".SubmenuesContainer").mouseleave(function () { $(".SubmenuesContainer").css('display', 'none'); $("#MoreBtnContainer").css('display', 'none'); }); $("#MoreBtnContainer").mouseleave(function () { $("#MoreBtnContainer").css('display', 'none'); }); }); function GetSubMenu(parentID) { // show loading image resetMenu(parentID); var glyphIconClass = $("#" + parentID + " span i").attr("class"); $("#" + parentID + " span i").removeClass(glyphIconClass); $("#" + parentID + " span").addClass("MenuLoading"); // if ($("#SubmenuContaner" + parentID).css("display") == "none") { if ($("#SubmenuContaner" + parentID + " li").length == 0) { $.ajax({ url: '/Menus/MobileTabsLevels', type: 'POST', data: { id: parentID }, success: function (data) { var ParentID = $("#SubmenuContaner" + parentID).parent().parent().attr('id'); $("#" + ParentID + " li.item-with-ul ul").css("display", "none"); $("#SubmenuContaner" + parentID).css({ "display": "block", "z-index": "999999999999" }); $("#SubmenuContaner" + parentID).html(data); // after appending Items to Ul if li is empty means no child tab then hide dropdown carrot if ($("#SubmenuContaner" + parentID + " li").length == 0) { $("#SubmenuContaner" + parentID).next().css("display", "none"); } }, error: function () { alert('Unable to load menu...'); } }); } else { //first check sub Ul items in Li if exists then hide all... if ($("#SubmenuContaner" + parentID + " ul").length > 0) { var ParentID = $("#SubmenuContaner" + parentID).parent().parent().attr('id'); $("#" + ParentID + " li ul").css("display", "none"); $("#SubmenuContaner" + parentID + " ul").css("display", "none"); $("#SubmenuContaner" + parentID).css("display", "block"); } else { var ParentID = $("#SubmenuContaner" + parentID).parent().parent().attr('id'); $("#" + ParentID + " li.item-with-ul ul").css("display", "none"); $("#SubmenuContaner" + parentID).css("display", "block"); } } // } // else { // if parent is hidden then show parent li items... // $("#SubmenuContaner" + parentID).toggle(); // } $("#" + parentID + " span i").addClass(glyphIconClass); $("#" + parentID + " span").removeClass("MenuLoading"); } function showHideMoreItems() { $('.SubmenuesContainer').hide(); $("#MoreBtnContainer").slideToggle(0); } function resetMenu(parentID) { var ParentID = $("#SubmenuContaner" + parentID).parent().parent().attr('id'); if (ParentID == null || parentID == '') { $(".SubmenuesContainer").not("#SubmenuContaner" + parentID).css('display', 'none'); $("#MoreBtnContainer").css('display', 'none'); } }; </script> <script> function toggleSearchField() { debugger; $('.searchbox').toggle("ease"); } </script> <section class="row"> <div class="container"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="sitepage"> <div id="divUpdate"> <div id="msgText"></div> </div> <div class="hidden-xs"></div> <!--Breadcrum Starts--> <div class="hidden-xs"> <div class="breadcrum" style=" margin-top: 2px; margin-left: 4px;"> <span data-num='1'><a href="/Media_ED_ADC">Media/ED/ADC</a><span class="glyphicon glyphicon-menu-right" style="margin-left: 5px; font-size: 10px;">&nbsp;</span></span> <span data-num='2'><a href="/Trolley_Ward_Watch">Trolley_Ward_Watch</a><span class="" style="margin-left: 5px; font-size: 10px;">&nbsp;</span></span> </div> <style> div.breadcrum span:hover img { background-image:url(Images/Breadcrum1.jpg); } </style></div> <!--Breadcrum Ends--> <div class="col-lg-8 col-md-9 col-sm-8 col-xs-12" id="contentPane" style="padding-right: 10px;"> <div class="row" style="margin-bottom:15px;"> <style> ul{margin-left: 20px;} ul li { list-style-position: inside; list-style: disc; } </style> <div class="row"> <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12"> <div id="57692" class="ForHtmlDoc"></div> </div> </div> </div> <script language="javascript" type="text/javascript"> jQuery(document).ready(function () { $("#57692").load('/HtmlDoc/IndexPage?moduleId=57692', function (response, status, xhr) { if (status == "error") { //var msg = "Sorry but there was an error: "; } }); }); </script> <div id="listForm" class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <script language="javascript" type="text/javascript"> arrayOfDataMulti = new Array([[60,160,15,85],'1'],[[111,200,18,108],'4'],[[135,263,25,119],'5']); </script> <div id="exampleMulti" style="font-size:10px;margin:15px 0px;" class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> </div> <form action="/TrolleyWatch/Index/6022-55919" data-ajax="true" data-ajax-method="Post" data-ajax-mode="replace" data-ajax-update="#listForm" id="form0" method="post"> <div class="row"> <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-top: 5px;"> <input type="text" style="display: none;" />Search Archive: </div> <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12" style="margin-right: 5px;"><input class="form-control DateTimepic" data-val="true" data-val-required="The DateTime field is required." id="DateTrolley" name="DateTrolley" type="text" value="06/12/2017 00:00:00" /> </div> <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12" style="margin-top: 5px;"> <input id="btnSearch" type="submit" value="Search" class="btn btn-primary" /> </div> </div> </form><table class="Trolley table" id="TrolleyTable" width="96%"> <thead> <tr > <td>Date</td> <td>Hospital</td> <td>Region</td> <td class="Number">Trolley Total</td> <td class="Number">Ward Total</td> <td class="Number">Total</td> <!--unComment for Ward Total --> </tr> </thead> <tr class="" id="tr62372"> <td>05/12/2017</td> <td>Beaumont Hospital</td> <td>Eastern</td> <td class="Number">12</td> <td class="Number">7</td> <td class="Number">19</td> <!--uncomment for ward watch --> </tr> <tr class="" id="tr62373"> <td>05/12/2017</td> <td>Connolly Hospital, Blanchardstown</td> <td>Eastern</td> <td class="Number">8</td> <td class="Number">6</td> <td class="Number">14</td> <!--uncomment for ward watch --> </tr> <tr class="" id="tr62374"> <td>05/12/2017</td> <td>Mater Misericordiae University Hospital</td> <td>Eastern</td> <td class="Number">37</td> <td class="Number">0</td> <td class="Number">37</td> <!--uncomment for ward watch --> </tr> <tr class="" id="tr62375"> <td>05/12/2017</td> <td>Naas General Hospital</td> <td>Eastern</td> <td class="Number">18</td> <td class="Number">3</td> <td class="Number">21</td> <!--uncomment for ward watch --> </tr> <tr class="" id="tr62376"> <td>05/12/2017</td> <td>St James&#39; Hospital</td> <td>Eastern</td> <td class="Number">7</td> <td class="Number">0</td> <td class="Number">7</td> <!--uncomment for ward watch --> </tr> <tr class="" id="tr62377"> <td>05/12/2017</td> <td>St Vincent&#39;s University Hospital</td> <td>Eastern</td> <td class="Number">36</td> <td class="Number">0</td> <td class="Number">36</td> <!--uncomment for ward watch --> </tr> <tr class="" id="tr62378"> <td>05/12/2017</td> <td>Tallaght Hospital</td> <td>Eastern</td> <td class="Number">17</td> <td class="Number">9</td> <td class="Number">26</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62379"> <td>05/12/2017</td> <td>Bantry General Hospital</td> <td>Country</td> <td class="Number">0</td> <td class="Number">0</td> <td class="Number">0</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62380"> <td>05/12/2017</td> <td>Cavan General Hospital</td> <td>Country</td> <td class="Number">0</td> <td class="Number">0</td> <td class="Number">0</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62381"> <td>05/12/2017</td> <td>Cork University Hospital</td> <td>Country</td> <td class="Number">31</td> <td class="Number">10</td> <td class="Number">41</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62382"> <td>05/12/2017</td> <td>Letterkenny General Hospital</td> <td>Country</td> <td class="Number">18</td> <td class="Number">13</td> <td class="Number">31</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62383"> <td>05/12/2017</td> <td>Mayo General Hospital</td> <td>Country</td> <td class="Number">11</td> <td class="Number">4</td> <td class="Number">15</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62384"> <td>05/12/2017</td> <td>Mercy University Hospital, Cork</td> <td>Country</td> <td class="Number">21</td> <td class="Number">0</td> <td class="Number">21</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62385"> <td>05/12/2017</td> <td>Mid Western Regional Hospital, Ennis</td> <td>Country</td> <td class="Number">0</td> <td class="Number">0</td> <td class="Number">0</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62386"> <td>05/12/2017</td> <td>Midland Regional Hospital, Mullingar</td> <td>Country</td> <td class="Number">20</td> <td class="Number">10</td> <td class="Number">30</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62387"> <td>05/12/2017</td> <td>Midland Regional Hospital, Portlaoise</td> <td>Country</td> <td class="Number">10</td> <td class="Number">0</td> <td class="Number">10</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62388"> <td>05/12/2017</td> <td>Midland Regional Hospital, Tullamore</td> <td>Country</td> <td class="Number">11</td> <td class="Number">7</td> <td class="Number">18</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62389"> <td>05/12/2017</td> <td>Nenagh General Hospital Country</td> <td>Country</td> <td class="Number">0</td> <td class="Number">2</td> <td class="Number">2</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62390"> <td>05/12/2017</td> <td>Our Lady of Lourdes Hospital, Drogheda</td> <td>Country</td> <td class="Number">19</td> <td class="Number">0</td> <td class="Number">19</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62391"> <td>05/12/2017</td> <td>Our Lady&#39;s Hospital, Navan</td> <td>Country</td> <td class="Number">4</td> <td class="Number">11</td> <td class="Number">15</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62392"> <td>05/12/2017</td> <td>Portiuncula Hospital</td> <td>Country</td> <td class="Number">1</td> <td class="Number">0</td> <td class="Number">1</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62393"> <td>05/12/2017</td> <td>Sligo Regional Hospital</td> <td>Country</td> <td class="Number">14</td> <td class="Number">5</td> <td class="Number">19</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62394"> <td>05/12/2017</td> <td>South Tipperary General Hospital</td> <td>Country</td> <td class="Number">14</td> <td class="Number">6</td> <td class="Number">20</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62395"> <td>05/12/2017</td> <td>St Lukes Hospital, Kilkenny</td> <td>Country</td> <td class="Number">7</td> <td class="Number">20</td> <td class="Number">27</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62396"> <td>05/12/2017</td> <td>University College Hospital Galway</td> <td>Country</td> <td class="Number">33</td> <td class="Number">3</td> <td class="Number">36</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62397"> <td>05/12/2017</td> <td>University Hospital Kerry</td> <td>Country</td> <td class="Number">13</td> <td class="Number">0</td> <td class="Number">13</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62399"> <td>05/12/2017</td> <td>University Hospital Waterford</td> <td>Country</td> <td class="Number">25</td> <td class="Number">6</td> <td class="Number">31</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62398"> <td>05/12/2017</td> <td>University Hospital, Limerick</td> <td>Country</td> <td class="Number">10</td> <td class="Number">22</td> <td class="Number">32</td> <!--uncomment for ward watch --> </tr> <tr class="Country" id="tr62400"> <td>05/12/2017</td> <td>Wexford General Hospital</td> <td>Country</td> <td class="Number">1</td> <td class="Number">0</td> <td class="Number">1</td> <!--uncomment for ward watch --> </tr> </table> <table style="float:right;width:100%;" cellpadding="4"> <tr style="height:20px;"> <td></td> <td></td> <td></td> <td style="width:75px;"></td> <td style="width:75px;"></td> <td style="width:75px;"></td> <!--uncomment for ward Watch--> </tr> <tr> <td style="font-weight:bold;border-bottom:0px solid #979797; text-align:right; padding-right:15px;" colspan="3" >Eastern</td> <td class="Number" style="font-weight:bold;text-align:right;border:1px solid #979797;background-color:#031f5e; color:#FFF; padding-right:10px;">135</td> <td class="Number" style="font-weight:bold;text-align:right;border:1px solid #979797;background-color:#8b54a8; color:#FFF; padding-right:10px;">25</td> <!--UNCOMMENT FOR WARD wATCH--> <td class="Number" style="font-weight:bold;text-align:right;border:1px solid #979797;background-color:#979797; color:#FFF; padding-right:10px;">160</td> </tr> <tr class="Country"> <td style="font-weight:bold;border-bottom:0px solid #979797; text-align:right; padding-right:15px;" colspan="3">Country</td> <td class="Number" style="font-weight:bold;text-align:right;border:1px solid #979797;background-color:#e79301; color:#FFF; padding-right:10px;">263</td> <td class="Number" style="font-weight:bold;text-align:right;border:1px solid #979797;background-color:#83a82f; color:#FFF; padding-right:10px;">119</td><!--uncomment for ward watch--> <td class="Number" style="font-weight:bold;text-align:right;border:1px solid #979797;background-color:#979797; color:#FFF; padding-right:10px;">382</td> </tr> <tr> <td style="font-weight:bold; border-bottom:0px solid #979797; text-align:right; padding-right:15px;" colspan="3" >Total</td> <td class="Number" style="font-weight:bold;text-align:right;border:1px solid #979797;background-color:#979797; color:#FFF; padding-right:10px;">398</td> <td class="Number" style="font-weight:bold;text-align:right;border:1px solid #979797;background-color:#979797; color:#FFF; padding-right:10px;">144</td> <!--uncooment for ward watch --> <td class="Number" style="font-weight:bold;text-align:right;border:1px solid #979797;background-color:#979797; color:#FFF; padding-right:10px;">542</td> </tr> </table> <script> function deleteit(linkstr, vid) { if (confirm('Are you sure, to delete this entry...')) { $.ajax({ type: 'Post', url: linkstr, data: "{'vId':'" + vid + "'}", contentType: 'application/json; charset=utf-8', dataType: 'json', success: deleted, error: notdeleted }); } return false; } function deleted(res) { $("#tr" + res).remove(); } function notdeleted() { alert('could not deleted. please try latter.'); } </script> <script src="/Scripts/jqBarGraph.1.1.js" type="text/javascript"></script> <script language="javascript"> var divWidth = $('#exampleMulti').outerWidth(); $('#exampleMulti').jqBarGraph({ data: arrayOfDataMulti, width: 640, colors: ['#031f5e', '#e79301',"#8b54a8","#83a82f"],// uncomment for ward watch //colors: ['#031f5e', '#e79301'], legends: ['Eastern Trolley', 'Country Trolley','Eastern Ward', 'Country Ward'], // uncooment for ward Watch //legends: ['Eastern Trolley', 'Country Trolley'], legend: true, legendWidth:100 }); $(document).ready(function() { if($($("#TrolleyTable tr td:nth-child(1)")[1]).text()!= undefined && $($("#TrolleyTable tr td:nth-child(1)")[1]).text() !=null && $($("#TrolleyTable tr td:nth-child(1)")[1]).text()!="") { //$("#DateTrolley").val($($("#TrolleyTable tr td:nth-child(1)")[1]).text()); } }); </script> </div> <script src="/Scripts/DateTimePickerScripts/jquery.js"></script> <script src="/Scripts/DateTimePickerScripts/jquery.datetimepicker.js"></script> <script> $('.DateTimepic').datetimepicker({ dayOfWeekStart: 1, lang: 'en', format: 'd/m/Y', timepicker: false }); </script> <div class="row" style="margin-bottom:15px;"> <style> ul{margin-left: 20px;} ul li { list-style-position: inside; list-style: disc; } </style> <div class="row"> <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12"> <div id="55931" class="ForHtmlDoc"></div> </div> </div> </div> <script language="javascript" type="text/javascript"> jQuery(document).ready(function () { $("#55931").load('/HtmlDoc/IndexPage?moduleId=55931', function (response, status, xhr) { if (status == "error") { //var msg = "Sorry but there was an error: "; } }); }); </script> </div> <div class="col-lg-4 col-md-3 col-sm-4 col-xs-12" > <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-bottom:15px;"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="display-field" id="HtmlContainer" ><p><a href="https://inmo.ie/Trolley_Ward_Watch_Analysis"><img alt="" src="https://www.inmo.ie/Content/Images/ImageGallery/Trolley-and-Ward-Watch-Analysis-Icon-2016_2017.jpg" style="height:213px; width:300px" /></a></p> <p>The Irish Nurses and Midwives Organisation (INMO), in its latest <a href="http://www.inmo.ie/tempDocs/Trolley%20and%20Ward%20Watch%20November%202006%20-%202017.pdf"><strong>Trolley/Ward Watch analysis</strong></a>, has recorded 8688 patients on trolleys in November 2017 awaiting admission for in-patient treatment. This represents a 7% reduction when compared to November 2016.</p> </div> </div> </div> </div> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="margin-bottom:15px;"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="display-field" id="HtmlContainer" ><p><img alt="" src="/Content/Images/ImageGallery/twitter-bird-128x115.jpg" style="float:left; height:57px; margin:5px; width:65px" />INMO Tweets @INMO_IRL</p> <p><a class="twitter-timeline" href="https://twitter.com/INMO_IRL">Tweets by @INMO_IRL</a></p> </div> </div> </div> </div> </div> </div> <script type="text/javascript"> var $j = jQuery; </script> <script type="text/javascript" src="//uk1.siteimprove.com/js/siteanalyze_5281954.js"></script> </div> </div> </section> <div class="row"> <div class="container"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="border-top:1px solid gray; padding: 10px 0px 10px 0px;"> <span style="font-size:14px; font-weight:bold; cursor:pointer;" id="SiteMapLabel" class="btn btn-primary"> Site Map <i class="glyphicon glyphicon-menu-down" id="siteArrowdown"></i><i class="glyphicon glyphicon-menu-up" id="siteArrowup"></i></span> </div> </div> </div> <div class="container" id="SiteMapeContainer"> <div class="row" style="margin-bottom:15px;"> <style> ul{margin-left: 20px;} ul li { list-style-position: inside; list-style: disc; } </style> <div class="row"> <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12"> <div id="0" class="ForHtmlDoc"></div> </div> </div> </div> <script language="javascript" type="text/javascript"> jQuery(document).ready(function () { $("#0").load('/HtmlDoc/IndexPage?moduleId=0', function (response, status, xhr) { if (status == "error") { //var msg = "Sorry but there was an error: "; } }); }); </script> </div> <div class="row"> <div class="container"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="border-top:1px solid gray; padding: 10px 0px 10px 0px;"> <div><a href="http://www.inmo.ie/dublin_office_HQ"> Irish Nurses & Midwives Organisation </a> (Cumann Altrai agus Ban Cabhrach na hEireann). The Whitworth Building, North Brunswick Street, Dublin 7. T:0016640600 E:<a href="mailto:inmo@inmo.ie">inmo@inmo.ie</a> </div> </div> </div> </div> </body> </html> <script> $(document).ready(function () { $("#SiteMapLabel").click( function () { if ($("#siteArrowdown").css("display") == "none") { $("#siteArrowdown").css("display", "inline"); $("#siteArrowup").css("display", "none"); } else { $("#siteArrowdown").css("display", "none"); $("#siteArrowup").css("display", "inline"); $("html, body").animate({ scrollTop: $(document).height() }, 1000); } $("#SiteMapeContainer").slideToggle(); } ); }); </script> <script type="text/javascript"> /*<![CDATA[*/ (function() { var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true; sz.src = '//siteimproveanalytics.com/js/siteanalyze_5281954.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s); })(); /*]]>*/ </script> Scraper didn't create an SQLite database in your current working directory called data.sqlite. If you've just created your first scraper and not edited the code yet this is to be expected. To fix this make your scraper write to an SQLite database at data.sqlite. However, this could also be related to an intermittent problem which we're working hard to resolve: https://github.com/openaustralia/morph/issues/1064

Statistics

Total run time: 1 minute

Total cpu time used: less than 5 seconds

Total disk space used: 30.5 KB

History

  • Manually ran revision c3d1f3fc and failed .
    nothing changed in the database
  • Manually ran revision e079a42b and failed .
    nothing changed in the database
  • Manually ran revision b1320297 and failed .
    nothing changed in the database
  • Manually ran revision 6aa84a00 and failed .
    nothing changed in the database
  • Created on morph.io

Scraper code

tutorial-1