Deploy to production #109
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue