Merge pull request 'update select el grays scarping' (#108) from main into staging

Reviewed-on: #108
This commit is contained in:
zelda 2026-01-15 17:20:00 +11:00
commit 5cb66ea156
1 changed files with 2 additions and 4 deletions

View File

@ -40,15 +40,13 @@ export class GraysScrapModel extends ScrapModel {
};
getItemsInHtml = async (data) => {
const elements = await this.page.$$(
".Container [style*='display: block'] > div > div"
);
const elements = await this.page.$$(".Container a[id^='LOT_']");
const results = [];
for (const el of elements) {
const url = await el
.$eval("a", (el) => el.getAttribute("href"))
.evaluate((a) => a.getAttribute("href"))
.catch(() => null);
const image_url = await el