Merge pull request 'Deploy to statge' (#94) from main into staging
Reviewed-on: #94
This commit is contained in:
commit
c7b0c47b98
|
|
@ -38,7 +38,8 @@ export class GraysScrapModel extends ScrapModel {
|
|||
};
|
||||
|
||||
getItemsInHtml = async (data) => {
|
||||
const elements = await this.page.$$(".sc-102aeaf3-1.eYPitT > div");
|
||||
const elements = await this.page.$$('[style="display:block"] > div > div');
|
||||
|
||||
const results = [];
|
||||
|
||||
for (const el of elements) {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ export class ScrapModel {
|
|||
|
||||
filterItemByKeyword(keyword, data) {
|
||||
return data.filter((item) =>
|
||||
item.name.toLowerCase().includes(keyword.toLowerCase())
|
||||
item.name?.toLowerCase().includes(keyword.toLowerCase())
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue