Skip to content

Error displaying the datapoints of a product #259

@CVasilakis

Description

@CVasilakis

After adding a product:

python3 main.py -a -c smartphones -u https://www.amazon.de/-/en/Google-Pixel-Pro-Smartphone-Obsidian/dp/B0DG9DD9VN

I validate that the product is successfully added:

user@test-pc:~/amazon/scraper$ python3 main.py --list-products

----- SHOWING ALL PRODUCTS -----
SMARTPHONES
  > GOOGLE PIXEL 9 PRO (512GB, OBSI, EU / UK) + PIXEL 9/9 PRO CASE, OBSIDIAN
    - ✓ AMAZON - B0DG9DD9VN

and then i scrape using:

user@test-pc:~/amazon/scraper$ python3 main.py -s
Scraping...
Scraping [========================================] 1/1 [100%] in 3.1s

In the database.db file i can see that the price is successfully scraped:
Image

but retrieving the price using the following options does not work:

user@test-pc:~/amazon/scraper$ python3 main.py -v --all
Visualizing...
No products found

user@test-pc:~/amazon/scraper$ python3 main.py --name "GOOGLE PIXEL 9 PRO (512GB, OBSI, EU / UK) + PIXEL 9/9 PRO CASE, OBSIDIAN" --latest-datapoint

----- SHOWING LATEST DATAPOINT FOR NAME(s) -----

You can see that there is no latest data point returned, nor the -v option reported any product, regardless of the fact that the product is successfully added. I am using the latest version (35a589f).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions