All Projects → PublicI → fec-parse

PublicI / fec-parse

Licence: other
A Node module to parse raw FEC electronic filings, inspired by Fech.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to fec-parse

data.gouv.fr
Ce dépôt rassemble les tickets techniques qui portent sur data.gouv.fr.
Stars: ✭ 50 (+212.5%)
Mutual labels:  government-data
link-service
The link service is used to create links to content and metadata on govinfo
Stars: ✭ 34 (+112.5%)
Mutual labels:  government-data
nyt-fec
a smaller, cleaner, campaign finance app that complements the new FEC site
Stars: ✭ 21 (+31.25%)
Mutual labels:  fec
legislator-scorecard
🗳️ Explore MA state representatives' voting records
Stars: ✭ 17 (+6.25%)
Mutual labels:  government-data
Indian-government-API-List
A curated list of official APIs owned by government of India.
Stars: ✭ 65 (+306.25%)
Mutual labels:  government-data
gcis
Global Change Information System
Stars: ✭ 20 (+25%)
Mutual labels:  government-data
tidyhydat
An R package to import Water Survey of Canada hydrometric data and make it tidy
Stars: ✭ 67 (+318.75%)
Mutual labels:  government-data
Tinyfecvpn
A VPN Designed for Lossy Links, with Build-in Forward Error Correction(FEC) Support. Improves your Network Quality on a High-latency Lossy Link.
Stars: ✭ 1,842 (+11412.5%)
Mutual labels:  fec
harlan
Harlan é o sistema modular que permite você automatizar toda sua governança cadastral da nuvem.
Stars: ✭ 25 (+56.25%)
Mutual labels:  government-data
kcptun-asio
A kcptun based on c++11/asio, compatible with kcptun(golang)
Stars: ✭ 74 (+362.5%)
Mutual labels:  fec
covid19br-pub
Projeto de monitoramento de publicações oficiais relacionadas a COVID-19 no Brasil.
Stars: ✭ 12 (-25%)
Mutual labels:  government-data
PressCenters.com
News aggregator for the press releases of the Bulgarian government sites written in ASP.NET Core
Stars: ✭ 91 (+468.75%)
Mutual labels:  government-data
schema.data.gouv.fr
Schémas de données ouvertes sur des formats réglementaires ou non
Stars: ✭ 31 (+93.75%)
Mutual labels:  government-data
crime-data-frontend
Visualization and download tools for exploring the FBI’s Uniform Crime Reporting (UCR) data
Stars: ✭ 88 (+450%)
Mutual labels:  government-data
schifra
C++ Reed Solomon Error Correcting Library https://www.schifra.com
Stars: ✭ 28 (+75%)
Mutual labels:  fec
mun3code
codice per il progetto municipio 3
Stars: ✭ 12 (-25%)
Mutual labels:  government-data
NYCOpenRecords
A web application to submit and view Freedom of Information Law requests
Stars: ✭ 38 (+137.5%)
Mutual labels:  government-data
bill-status
Information about Bill Status XML Bulk Data including the XML User Guide.
Stars: ✭ 129 (+706.25%)
Mutual labels:  government-data
Udpspeeder
A Tunnel which Improves your Network Quality on a High-latency Lossy Link by using Forward Error Correction, possible for All Traffics(TCP/UDP/ICMP)
Stars: ✭ 3,699 (+23018.75%)
Mutual labels:  fec
blockyarchive
Blocky archive - multithreaded archiver offering bit rot protection and sector level recoverability
Stars: ✭ 88 (+450%)
Mutual labels:  fec

This is an unofficial Node.js parser for electronic filings submitted to the Federal Election Commission.

This uses code from the Fech Ruby gem by Derek Willis and others, and the csv-parser module by Mathias Buus, Max Ogden and others. It uses header mappings contributed to by many and refined by Evan Sonderegger for fecfile.

Installation

npm i fec-parse

Usage

Parse from downloaded file

wget http://docquery.fec.gov/dcdev/posted/876050.fec
import fs from "fs";
import parser from "fec-parse";

const filingId = "876050"; // Obama for America 2012 post-general report

fs.createReadStream(`${filingId}.fec`)
  .pipe(parser())
  .on("data", (row) => {
    console.log(row);
  })
  .on("error", (err) => {
    console.error(err);
  })
  .on("finish", () => {
    console.log("done");
  });

Download and parse in one

npm install --save request JSONStream
import fs from "fs";
import parser from "fec-parse";
import request from "request";
import JSONStream from "JSONStream";

const filingId = "876050";

request(`http://docquery.fec.gov/dcdev/posted/${filingId}.fec`)
  .pipe(parser())
  .pipe(JSONStream.stringify('{"rows":[\n', ",\n", "\n]}"))
  .pipe(fs.createWriteStream(`${filingId}.json`));
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].