clabrow / tutorial-2

How to Write a Screen Scraper: 2


Forked from ScraperWiki

Contributors clabrow

Last run failed with status code 1.

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... Click on the ...more link to see the whole page Traceback (most recent call last): File "scraper.py", line 26, in <module> [<Element p at 0x2a91ef0>, <Element p at 0x2a91e90>, <Element p at 0x2a91f50>, <Element p at 0x2a91fb0>, <Element p at 0x2ab0050>] print p.text # just the text inside the HTML tag UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 64: ordinal not in range(128) <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>&#13; &#13; None <p><a href="https://www.inmo.ie/attachment.aspx?doc=4652"><strong>Trolley Plus Ward Watch Analysis: January - July (2006 - 2017)</strong></a><br> - 57,674 admitted patients on trolleys in first seven&#160;months</p>&#13; &#13; None <p>The Irish Nurses and Midwives Organisation (INMO), in its latest&#160;<a href="https://www.inmo.ie/attachment.aspx?doc=4647"><strong>Trolley/Ward Watch analysis</strong></a>, has recorded 6353 patients on trolleys in July 2017&#160;awaiting admission for in-patient treatment.&#160;This represents a 6% decrease&#160;when compared to July 2016.</p>&#13;

Data

Downloaded 1 time by clabrow

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (8 KB) Use the API

rows 10 / 81

td
17
9
14
35
13
30
32
50
09/08/2017
25

Statistics

Average successful run time: less than 20 seconds

Total run time: 1 minute

Total cpu time used: less than 5 seconds

Total disk space used: 30.6 KB

History

  • Manually ran revision 91bf1c8f and failed .
    nothing changed in the database
  • Manually ran revision 892658e9 and completed successfully .
    71 records added, 56 records removed in the database
  • Manually ran revision 52328728 and failed .
    66 records added, 66 records removed in the database
  • Manually ran revision b467c4eb and failed .
    66 records added in the database
  • Manually ran revision 7eeae1cc and failed .
    nothing changed in the database
  • Forked from ScraperWiki

Scraper code

tutorial-2