From e47795baf1b1fbe67b027eecad4171a08a6a4733 Mon Sep 17 00:00:00 2001 From: Julien Riou Date: Tue, 2 Mar 2021 12:39:18 +0100 Subject: [PATCH] Remove leftover query file Signed-off-by: Julien Riou --- newegg.fql | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 newegg.fql diff --git a/newegg.fql b/newegg.fql deleted file mode 100644 index 1bab3ae..0000000 --- a/newegg.fql +++ /dev/null @@ -1,14 +0,0 @@ -LET first_page = 'https://www.newegg.com/p/pl?N=100007709%208000%204841' -LET doc = DOCUMENT(first_page, {driver: "cdp"}) - -FOR el IN ELEMENTS(doc, "div .item-cell") - LET a = ELEMENT(el, "div .item-title") - LET price = TO_FLOAT(SUBSTITUTE(SUBSTITUTE(TRIM(INNER_TEXT(ELEMENT(el, "div .price-current"))), '$', ''), ',', '')) - LET available = !ELEMENT_EXISTS(el, "div .item-promo") - RETURN { - name: TRIM(LEFT(INNER_TEXT(a), 100)), - url: a.attributes.href, - price: price, - price_currency: "USD", - available: available, - }