Skip to content

Commit

Permalink
Update scraper.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-R-Afonso committed May 5, 2020
1 parent 12aff1f commit b487ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scraper.js
Expand Up @@ -58,7 +58,7 @@ function run(db) {
fetchPage("https://www.habinedita.com"+next, function (body) {
// Use cheerio to find things in the page with css selectors.
var $ = cheerio.load(body);
lastPage = $('span.paginacao-spacer').parent().text().replace('.', '').trim();
lastPage = $('span.paginacao-spacer').parent().text().replace('./g', '').trim();
if(lastPage != 'undefined'){
console.log("lastPage: "+lastPage);
}
Expand Down

0 comments on commit b487ff0

Please sign in to comment.