removedd cities.csv to to unde data dir

This commit is contained in:
Ken Yasue
2025-03-23 22:16:00 +01:00
parent 4b42f7bf3a
commit fbce5e6e5c
2 changed files with 1003 additions and 2 deletions

1001
data/cities.csv Normal file

File diff suppressed because it is too large Load Diff

View File

@ -19,7 +19,7 @@ import { randomUUID } from 'crypto';
*/
async function visitCityPages(): Promise<void> {
const cities = getCities(path.join(__dirname, 'cities.csv'));
const cities = getCities(path.join(__dirname, '../data/cities.csv'));
console.log('Connecting to existing Chrome browser...');
@ -116,7 +116,7 @@ async function visitCityPages(): Promise<void> {
const { websiteUrl, email } = await UIActions.getWebsiteAndEmail(driver);
console.log(`${websiteUrl} / ${email}`);
saveContactInfoToCSV(city, { websiteUrl: websiteUrl, email: email }, path.join(__dirname, 'contact_info.csv'));
saveContactInfoToCSV(city, { websiteUrl: websiteUrl, email: email }, path.join(__dirname, '../data/contact_info.csv'));
museumWindow && await driver.switchTo().window(museumWindow);
await driver.close();