diff --git a/bin/scrape.mjs b/bin/scrape.mjs index e7f2a88..f7752f9 100644 --- a/bin/scrape.mjs +++ b/bin/scrape.mjs @@ -2,10 +2,18 @@ import { get_page_events } from '../src/facebook/get-page-events.mjs'; import send from '../src/signal/send.mjs'; import fetch from 'node-fetch'; -const api = 'http://localhost:3333'; -const token = - // '831411806230c7e950c4eeb226499ef92bb6bdc4157797929a0e16d133dc13a8'; - '1234567812345678123456781234567812345678123456781234567812345678'; +const prod = false; + +let api, token; + +if (prod) { + api = 'http://10.0.0.210:8484'; + token = '831411806230c7e950c4eeb226499ef92bb6bdc4157797929a0e16d133dc13a8'; +} else { + api = 'http://localhost:3333'; + token = '1234567812345678123456781234567812345678123456781234567812345678'; +} + const headers = { 'Content-Type': 'application/json' }; const scrape = async (pageID) => {