Skip to content

Commit

Permalink
Fix URL encode in scraper
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxattax97 committed Jan 22, 2017
1 parent 4911187 commit 4ea0722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/scraper.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ module.exports.scrape = function(network, article, callback) {
return;
}

//var query = querystring.stringify({query: "SELECT name FROM user WHERE uid = me()"});
var link = module.networkSource[network.name] + article.split(" ").join("+");
var query = querystring.stringify({query: "article"}).split("%20").join("+");
var link = module.networkSource[network.name] + query;
console.log("Scraping " + link);

request(link, function(err, res, html) {
Expand Down

0 comments on commit 4ea0722

Please sign in to comment.