diff --git a/scrape/parse.js b/scrape/parse.js index ee1d392..7da367b 100644 --- a/scrape/parse.js +++ b/scrape/parse.js @@ -51,7 +51,7 @@ export default async function parseThisShit(downloadedFilePath) { if (value && typeof value === "string") { const testResult = regex.test(value); - if (testResult) { + if (testResult && cellAddress.startsWith("A")) { const prefixMatch = value.match(prefixRegex); if (prefixMatch) { const prefix = prefixMatch[0]; @@ -164,6 +164,7 @@ export default async function parseThisShit(downloadedFilePath) { } finalIndex++; + break; } const currentDate = new Date(); @@ -205,4 +206,4 @@ export default async function parseThisShit(downloadedFilePath) { fs.writeFileSync("db/current.json", JSON.stringify(data, null, 2)); } -// parseThisShit("downloads/table.xlsx") +parseThisShit("downloads/table.xlsx")