1

Now using Yokohama restaurants instead of New York ones for data

This commit is contained in:
Alex Yatskov 2014-11-12 13:39:52 +09:00
parent b7a7998d8a
commit c4aaf5af99
4 changed files with 12321 additions and 65519 deletions

File diff suppressed because one or more lines are too long

2
scrape/cache/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

File diff suppressed because it is too large Load Diff

View File

@ -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;