removedd cities.csv to to unde data dir
This commit is contained in:
1001
data/cities.csv
Normal file
1001
data/cities.csv
Normal file
File diff suppressed because it is too large
Load Diff
@ -19,7 +19,7 @@ import { randomUUID } from 'crypto';
|
|||||||
*/
|
*/
|
||||||
async function visitCityPages(): Promise<void> {
|
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...');
|
console.log('Connecting to existing Chrome browser...');
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ async function visitCityPages(): Promise<void> {
|
|||||||
const { websiteUrl, email } = await UIActions.getWebsiteAndEmail(driver);
|
const { websiteUrl, email } = await UIActions.getWebsiteAndEmail(driver);
|
||||||
|
|
||||||
console.log(`${websiteUrl} / ${email}`);
|
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);
|
museumWindow && await driver.switchTo().window(museumWindow);
|
||||||
await driver.close();
|
await driver.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user