-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.js
34 lines (28 loc) · 848 Bytes
/
utils.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
const dotenv = require("dotenv");
dotenv.config();
const { API_KEY, USERNAME, PASSWORD } = process.env;
const path = require("path");
const dataFile = path.join(__dirname, "data.csv");
const errFile = path.join(__dirname, "err.txt");
const statusFile = path.join(__dirname, "status.txt");
const API = "https://www.rijksmuseum.nl/api/en/collection/";
const params = `?format=json&key=${API_KEY}&culture=en`;
const WIKI_API = "https://commons.wikimedia.org/w/api.php";
const author = "[[w:Rijksmuseum|Rijksmuseum]]";
const license = `{{cc-zero|Rijksmuseum}}`;
const LR = `{{LicenseReview}}`;
const cats = "[[Category:Media from Rijksmuseum]]\n[[Category:Uncategorized images of the Rijksmuseum]]";
module.exports = {
API,
dataFile,
errFile,
params,
PASSWORD,
USERNAME,
WIKI_API,
author,
license,
LR,
cats,
statusFile
};