From c8bee5822c7ffbed211e639d21095a0e82d9fe8f Mon Sep 17 00:00:00 2001 From: realS1ant Date: Sun, 11 Apr 2021 11:31:24 -0400 Subject: minor updates --- src/scraper/scrape.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/scraper') diff --git a/src/scraper/scrape.js b/src/scraper/scrape.js index e6018d2..3d4266f 100644 --- a/src/scraper/scrape.js +++ b/src/scraper/scrape.js @@ -1,5 +1,6 @@ const puppeteer = require('puppeteer'); const MongoClient = require('mongodb').MongoClient; +require('dotenv').config(); // Specifically for scraping // Stores in database once finished scraping @@ -8,7 +9,7 @@ const MongoClient = require('mongodb').MongoClient; exports.performSearch = async function (id, query, type) { try { - const uri = "mongodb+srv://user0:8HL0NBINt6B8mIYF@cluster0.kfyrm.mongodb.net/StreamFinder?retryWrites=true&w=majority"; + const uri = "mongodb+srv://hahaUthought:HhKrH8NbhgrcRScq@cluster0.kfyrm.mongodb.net/StreamFinder?retryWrites=true&w=majority"; const client = new MongoClient(uri, { useNewUrlParser: true, useUnifiedTopology: true }); await client.connect(); const database = client.db("db"); -- cgit v1.2.3