Skip to content

Commit

Permalink
removed ',' on self.currency
Browse files Browse the repository at this point in the history
  • Loading branch information
sushil-rgb committed Nov 22, 2023
1 parent a317db0 commit 58d6bf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


async def main():
base_url = "https://www.amazon.co.jp/s?i=sporting&rh=n%3A15334571%2Cp_n_price_fma%3A401077011&dc&fs=true&language=en&ds=v1%3AsC3hKMKPXJRge3qllDNTAiZkbn8XKSOiqs7NI0DL0J4&qid=1700597065&rnid=401076011&ref=sr_nr_p_n_price_fma_1"
base_url = "https://www.amazon.it/s?rh=n%3A20904366031&fs=true&ref=lp_20904366031_sar"
status = await Amazon(base_url, None).status()

if status == 503:
Expand Down
2 changes: 1 addition & 1 deletion scrapers/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, base_url, proxy):
self.region = region(base_url)

# Define a regular expression pattern for currencies in different regions
self.currency = r'["$₹,R$€£kr()%¥\s]' # Characters representing various currencies
self.currency = r'["$₹R$€£kr()%¥\s]' # Characters representing various currencies
# Explanation:
# - '[$₹,R\$€£kr()%¥\s]': Match any of the characters within the square brackets
# - '$': Dollar sign
Expand Down

0 comments on commit 58d6bf6

Please sign in to comment.