Compare commits
No commits in common. "c7b0c47b98410c2bc3a67e3b8fb7cccfe82cc2ce" and "6c6b1a8b36ba0ca3bca1ed69f6ff9a4dd5f37b84" have entirely different histories.
c7b0c47b98
...
6c6b1a8b36
|
|
@ -38,8 +38,7 @@ export class GraysScrapModel extends ScrapModel {
|
|||
};
|
||||
|
||||
getItemsInHtml = async (data) => {
|
||||
const elements = await this.page.$$('[style="display:block"] > div > div');
|
||||
|
||||
const elements = await this.page.$$(".sc-102aeaf3-1.eYPitT > 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