Compare commits

..

No commits in common. "c4a14ac77ae3015c9b783a2da81139a1b07fbc82" and "4484499867935816248d95217abdffcadb0fff4f" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View File

@ -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) {

View File

@ -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())
); );
} }