Compare commits
No commits in common. "c4a14ac77ae3015c9b783a2da81139a1b07fbc82" and "4484499867935816248d95217abdffcadb0fff4f" have entirely different histories.
c4a14ac77a
...
4484499867
|
|
@ -38,8 +38,7 @@ export class GraysScrapModel extends ScrapModel {
|
||||||
};
|
};
|
||||||
|
|
||||||
getItemsInHtml = async (data) => {
|
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 = [];
|
const results = [];
|
||||||
|
|
||||||
for (const el of elements) {
|
for (const el of elements) {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ export class ScrapModel {
|
||||||
|
|
||||||
filterItemByKeyword(keyword, data) {
|
filterItemByKeyword(keyword, data) {
|
||||||
return data.filter((item) =>
|
return data.filter((item) =>
|
||||||
item.name?.toLowerCase().includes(keyword.toLowerCase())
|
item.name.toLowerCase().includes(keyword.toLowerCase())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue