-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.js
39 lines (34 loc) · 980 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module.exports = {
/*
DATABASE
Methods that aid in generating the database of bills
*/
createBill: require("./lib/database/createBill"),
generateDB: require("./lib/database/generateDB"),
Bill: require("./lib/database/models/Bill"),
/*
SCRAPER
Methods that grab data from the server
*/
//Get Statuses
getBulkStatus: require("./lib/scraper/getBulkStatus"),
getBillStatus: require("./lib/scraper/getBillStatus"),
//Get Bills
getBulk: require("./lib/scraper/getBulk"),
getBill: require("./lib/scraper/getBill"),
/*
PARSER
Methods that clean up and analyze the raw data grabbed from the server
*/
//Clean statuses
cleanBillStatus: require("./lib/parser/cleanBillStatus"),
//Work with bills
cleanBill: require("./lib/parser/cleanBill"),
printBill: require("./lib/parser/printBill"),
tagBill: require("./lib/parser/tagBill"),
/*
FIELDS
*/
validBillTypes: ["s", "hr"],
validCongresses: [113, 114, 115]
};