diff options
| author | FivePixels <37427166+FivePixels@users.noreply.github.com> | 2021-04-10 14:21:09 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-10 14:21:09 -0500 |
| commit | d3d9f7e6b69a84ea4da04609642f309134f0a346 (patch) | |
| tree | 3f9f06658cec910f7421765535f85937ba7f2507 /src/scraper/scrape.js | |
| parent | 1b768b65ce2f241dfdaa0497bd79e593baec9a77 (diff) | |
| parent | 034720cdad9e7344db4177a6fef89c6b29a5829a (diff) | |
| download | StreamFinder-d3d9f7e6b69a84ea4da04609642f309134f0a346.tar.xz StreamFinder-d3d9f7e6b69a84ea4da04609642f309134f0a346.zip | |
Merge pull request #2 from FivePixels/dylan
check.js incomplete implementation, move modules to src, export scra…
Diffstat (limited to 'src/scraper/scrape.js')
| -rw-r--r-- | src/scraper/scrape.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/scraper/scrape.js b/src/scraper/scrape.js index 131ae40..a24d1e8 100644 --- a/src/scraper/scrape.js +++ b/src/scraper/scrape.js @@ -1,12 +1,13 @@ const puppeteer = require('puppeteer'); const mongodb = require('mongodb') + // Specifically for scraping // Stores in database once finished scraping // query is the search string (title of movie or show) and the type (music, show, movie) // will be used -async function performSearch(query, type) { +exports.performSearch = async function(query, type) { const browser = await puppeteer.launch({ headless: true }); @@ -29,5 +30,3 @@ async function performSearch(query, type) { // do the database storage await browser.close(); } - -// performSearch('spongebob', 'tv');
\ No newline at end of file |
