Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consolidate comparison examples #49

Merged
merged 9 commits into from
Aug 17, 2024
Prev Previous commit
Next Next commit
typo
  • Loading branch information
rachelnabors committed Aug 16, 2024
commit 6ce433c3e1e747396c962146c325782865081679
4 changes: 2 additions & 2 deletions examples/compare_product_prices/compare_product_prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Set the URL to the desired website
BESTBUY_URL = "https://www.bestbuy.com/site/nintendo-switch-oled-model-w-joy-con-white/6470923.p?skuId=6470923"
TARGET_URL = "https://www.target.com/p/nintendo-switch-oled-model-with-white-joy-con/-/A-83887639#lnk=sametab"
NINETENDO_URL = "https://www.nintendo.com/us/store/products/nintendo-switch-oled-model-white-set/"
NINTENDO_URL = "https://www.nintendo.com/us/store/products/nintendo-switch-oled-model-white-set/"

# Define the queries to get the product price
PRODUCT_INFO_QUERY = """
Expand All @@ -30,7 +30,7 @@ def main():

print("Price at BestBuy: ", response["nintendo_switch_price"])

page.goto(NINETENDO_URL)
page.goto(NINTENDO_URL)

# Use query_data() method to fetch the price from the Nintendo page
response = page.query_data(PRODUCT_INFO_QUERY)
Expand Down
Loading