Search code examples
c++httpparsingfeed

CVE Parsing file information


Good morning,

I want to write a small tool (possible with Java, C/C++ ???) that queries the messages on https://cve.mitre.org/data/downloads/index.html and filters only certain relevant messages.

My questions: 1. Which format is the best one for parsing data? In the textfile, for example, all the information is arranged together. So I think a filter for searching specific headers and specific lines will not work.

  1. How do I get the information from one of the files locally on my PC or on a server?

  2. How do I read and filter this information?


Solution

  • I'd recommend the JSoup Java library for fetching and parsing web pages. You can use a syntax very similar to jQuery for extracting data from the pages you've fetched.