Now using Yokohama restaurants instead of New York ones for data
This commit is contained in:
parent
b7a7998d8a
commit
c4aaf5af99
File diff suppressed because one or more lines are too long
2
scrape/cache/.gitignore
vendored
Normal file
2
scrape/cache/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*
|
||||||
|
!.gitignore
|
77826
scrape/data.json
77826
scrape/data.json
File diff suppressed because it is too large
Load Diff
@ -50,7 +50,7 @@ function reviewScraped(err, resp, html) {
|
|||||||
var rateValue = getBarPercent($(bars[7]));
|
var rateValue = getBarPercent($(bars[7]));
|
||||||
var rateAtmosphere = getBarPercent($(bars[8]));
|
var rateAtmosphere = getBarPercent($(bars[8]));
|
||||||
|
|
||||||
if (rateFood == 0.0 && rateService == 0.0 && rateValue == 0.0 && rateAtmosphere == 0.0) {
|
if (rateFood === 0.0 && rateService === 0.0 && rateValue === 0.0 && rateAtmosphere === 0.0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ function scrapeIndices(relativeUrl, callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
var relativePath = '/Restaurants-g60763-New_York_City_New_York.html';
|
var relativePath = '/Restaurants-g298173-Yokohama_Kanagawa_Prefecture_Kanto.html';
|
||||||
var databasePath = 'data.json';
|
var databasePath = 'data.json';
|
||||||
|
|
||||||
var abort = false;
|
var abort = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user