No commit activity in last 3 years
No release in over 3 years
Incremental result reporting for Transparency Toolkit
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

This handles reporting results back to Harvester from individual scrapers. When not using Harvester, it also handles saving the results and generating a JSON of the results.

To install- gem install harvesterreporter

To use-

  1. Create a hash with the following information about Harvester-

    • crawler_manager_url: The URL of the Harvester instance
    • selector_id: The corresponding selector on Harvester (if any) If no hash is provided, results will be saved in an array and output as JSON at the end of the crawler's run.
  2. reporter = HarvesterReporter.new(cm_hash)

  3. To report the results- reporter.report_results([result, array], "link or other status message")

  4. It should report the results on its own, but if you are not using Harvester, you should call reporter.gen_json to get the JSON output.