Sha256: 49bc2ed7174e8f6c6cb58610f35fc6aa4b5652c0779f604c5f53233346224f25
Contents?: true
Size: 693 Bytes
Versions: 4
Compression:
Stored size: 693 Bytes
Contents
# Examples For all examples don't forget to add `require 'nvd_feed_api'`. ## Download all feeds on disk ```ruby # Initialize the scraper. s = NVDFeedScraper.new # Scrap the NVD website to get the feeds attributes. s.scrap # Change the default feed storage location beacause default value is '/tmp/'. # '/tmp/' is mounted as tmpFS and is cleaned at every start. # This will considerably speed up your performance is you have to reboot. NVDFeedScraper::Feed.default_storage_location = "/home/shark/Dev/cve_feeds" # Create a {Feed} object for all available feeds s.feeds(s.available_feeds).each do |f| # and for each one download the JSON file and fill the attributes. f.json_pull end ```
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nvd_feed_api-0.0.3 | pages/EXAMPLES.md |
nvd_feed_api-0.0.2.pre | pages/EXAMPLES.md |
nvd_feed_api-0.0.1.rc2 | pages/EXAMPLES.md |
nvd_feed_api-0.0.1.rc1 | pages/EXAMPLES.md |