Socket
Book a DemoInstallSign in
Socket

reliefweb_scraper

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reliefweb_scraper

0.6.0
bundlerRubygems
Version published
Maintainers
3
Created
Source

Reliefweb Scraper

  • Feeds featured disasters from http://reliefweb.int/

Reliefweb::Disaster is a subclass of Hashie::Mash, so you can do the following:

disaster = Reliefweb.featured_disasters.first
puts disaster["title"]
puts disaster.title
  • Run "rake featured_disasters:fetch" to see the disaster data
  • Run "rake spec" to run the rspec tests

Examples

Return an array of featured disasters:

Reliefweb.featured_disasters

History

  • v0.2.0 - initial release
  • v0.3.1 - updated to reflect new changes to the ReliefWeb website
  • v0.4.0 - using new RSS feed from ReliefWeb, no need for GlideNumber anymore
  • v0.4.5 - updated ReliefWeb disaster feed url to use https
  • v0.5.0 - removed country_code as this is no longer provided in the feed
  • v0.6.0 - removed disaster_type as this is no longer provided in the feed

FAQs

Package last updated on 12 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.