chore: lint
This commit is contained in:
@@ -278,7 +278,7 @@ async function scrollDownToLoadMore(selector, limit) {
|
||||
* @param {boolean} [config.flexible=false] - Whether to use flexible matching for field selectors
|
||||
* @returns {Array.<Array.<Object>>} Array of arrays of scraped items, one sub-array per list
|
||||
*/
|
||||
window.scrapeList = function({ listSelector, fields }) {
|
||||
window.scrapeList = function ({ listSelector, fields }) {
|
||||
// Get all parent elements matching the listSelector
|
||||
const parentElements = Array.from(document.querySelectorAll(listSelector));
|
||||
|
||||
@@ -311,7 +311,7 @@ async function scrollDownToLoadMore(selector, limit) {
|
||||
scrapedData.push(record);
|
||||
});
|
||||
return scrapedData;
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets all children of the elements matching the listSelector,
|
||||
@@ -358,5 +358,4 @@ async function scrollDownToLoadMore(selector, limit) {
|
||||
return results;
|
||||
};
|
||||
|
||||
|
||||
})(window);
|
||||
Reference in New Issue
Block a user