view · edit · sidebar · attach · print · history

< Niklaus.20171122-rss2oddb | Index | Niklaus.20171120-oddb2xml-new-links >>



  • adapt RSS linkss
  • Fix some esign details
  • Keep in Mind



adapt RSS linkss

Must fix the error

Plugin: ODDB::RssPlugin

Error: Mechanize::ResponseCodeError
Message: 404 => Net::HTTPNotFound for -- unhandled response
/var/www/ `fetch'
/var/www/ `get'
/var/www/ `download'
/var/www/ `block in swissmedic_entries_of'
/var/www/ `each_key'
/var/www/ `swissmedic_entries_of'
/var/www/ `update_swissmedic_feed'
/var/www/ `update_recall_feed'
/var/www/ `update_immediate_with_error_report'
/var/www/ `update_recall_feed'
/var/www/ `update_swissmedic_feeds'
/var/www/ `run'
jobs/import_daily:13:in `block in <module:Util>'
/var/www/ `run'
jobs/import_daily:12:in `<module:Util>'
jobs/import_daily:11:in `<module:ODDB>'
jobs/import_daily:10:in `<main>'

This looks like a bit more work, we here we really have to parse the pages.

The links to the de/fr/it versions are in cleartext and vary therefore greatly. Putting them into a hash for easier manipulation.

Trying to download the file via open-uir and bypass mechanize. Getting the index and one example for HPC and Recall. Working on the unit tests. Now most unit tests pass, but the generated description is different from the old one. I must dig a little bit deeper. Also the old links for the HPC do not work anymore.

I have problem going to the second page of the HPC. The following code does not work => '2').click
# whereas the next works fine => /Homepage/).click

The first links is a javascript. How can I handle it?

But it is possible to use the following links

Another alternative would be using watir. I will try it. This snippet works

require 'watir';
require 'pp'
require 'pry'
startTime =
homeUrl = ''
@browser =
@browser.goto homeUrl>/2$/).click
endTime =
puts "Took #{endTime - startTime} seconds"

and outputs Took 5.773831599 seconds

For the recall we have

The full URL, which might even old entries is HTTP/1.1

Pushed commit Use new URL for swissmedic RSS feeds and installed the changes on thinpower.

Must add a link to the ODDB in the generated RSS. For this I must

  • Get the corresponding IKSNR from the referenced detail
  • Prepend a link to the description

Fix some esign details

French navigation bar should have non breaking space to prevent new lines. Fixed with commit Non breaking spaces for french navigation

view · edit · sidebar · attach · print · history
Page last modified on November 21, 2017, at 05:17 PM