rrrrrrrrr3 / boe_search_results

BOE_Search_Results

Scrapes www.boe.es

Agencia Estatal Boletín Oficial del Estado


BOE search results

Obtain the BOE document ids and links from a search that matches the following criteria:

  • Text Word: A given word in their text.
  • Title Word: A given word in their title.
  • Year: The year where the search is going to be performed.

Note: The Text Word and the Title Word are both optional. you can use both or only one of them depending on your needs.

Forked from ScraperWiki

Contributors rrrrrrrrr3

Last run failed with status code 1.

Console output of last run

Injecting configuration and compiling... Injecting scraper and running... "http://www.boe.es/buscar/boe.php?frases=no&campo[1]=DOC&operador[1]=and&campo[2]=TIT&operador[2]=and&campo[6]=FPU&operador[6]=and&sort_field[0]=fpu&sort_order[0]=asc&sort_field[1]=ref&sort_order[1]=asc&accion=Buscar&dato[1]=Eventual&dato[2]=&dato[6][0]=01/01/2015&dato[6][1]=31/12/2015" "_dGxqZnRXY2lFc1Jlc25hNWUzK1R4MDFMaHBxL3NzNXIrY1pPWG8xb0hqaXdnUk94Vjladlh3Y1BsQ0RoOGtDVTFzL1dvOG11QWwyczFYSWRybTBTU0xmeExObUtZQ2NZd3BqUGJ1elphYjVRdDY5Y2ZTNjNXaFpMZnZZRkVpT1V4RjlUa3NveTBIM216ZTBKTGxSR2VWTmZ1a3d5R1JLTDlNRjlnaERGRjJVRXoyM3hXKzIzeTFWaHE4OWpRQ2pyK3N0M3U5dlYzczNvZnBwNUorTlhPRGp5YjMydVczNkwrM3JQY3FzRXpGa09KR05ISmFlUmdCa2RtWEpTYURQQQ,," 696 0 "BOE-A-2015-48" "http://www.boe.es/buscar/doc.php?id=BOE-A-2015-48" /app/vendor/bundle/ruby/1.9.1/gems/sqlite_magic-0.0.3/lib/sqlite_magic.rb:91:in `block in save_data': Data has nil value for unique key. Unique keys are ["boe"]. Offending data: {:boe=>"BOE-A-2015-48", :link=>"http://www.boe.es/buscar/doc.php?id=BOE-A-2015-48"} (SqliteMagic::DatabaseError) from /app/vendor/bundle/ruby/1.9.1/gems/sqlite_magic-0.0.3/lib/sqlite_magic.rb:88:in `each' from /app/vendor/bundle/ruby/1.9.1/gems/sqlite_magic-0.0.3/lib/sqlite_magic.rb:88:in `save_data' from /app/vendor/bundle/ruby/1.9.1/bundler/gems/scraperwiki-ruby-fc5017681250/lib/scraperwiki.rb:89:in `save_sqlite' from scraper.rb:78:in `block in fetch_results' from scraper.rb:70:in `each' from scraper.rb:70:in `fetch_results' from scraper.rb:62:in `block in get_search_results' from scraper.rb:61:in `each' from scraper.rb:61:in `get_search_results' from scraper.rb:84:in `<main>'

Statistics

Total run time: half a minute

Total cpu time used: less than 5 seconds

Total disk space used: 52.1 KB

History

  • Manually ran revision 25115634 and failed .
    nothing changed in the database
    2 pages scraped
  • Forked from ScraperWiki

Scraper code

Ruby

boe_search_results / scraper.rb