i'm going to scrape around 20 site and for making it a bit easier i want to divide each scrape function for each site in different documents, however when i do that i keep getting
function scrape(url, callback) {
       ^^^^^^^^^
SyntaxError: Unexpected identifier
in my index i have this
var test = require('../services/test.js');
router.get('/scrape', function(req, res, next) {
  test.scrape("url", function(error){
    if (!error) {
      res.json({succees: "scraped"});
    } else {
      res.json({error: error});
    }
  });
});
and in test.js i have something like this
module.exports = {
  function scrape(url, callback) {
  }
};
 
     
    