amzpy 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: amzpy
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: A lightweight Amazon scraper library.
5
5
  Home-page: https://github.com/theonlyanil/amzpy
6
6
  Author: Anil Sardiwal
@@ -34,7 +34,7 @@ def parse_product_page(html_content: str, url: str = None, engine: RequestEngine
34
34
 
35
35
  # Get price
36
36
  price_element = soup.select_one('.a-price-whole')
37
- price = price_element.text.strip().replace(',', '') if price_element else None
37
+ price = float(price_element.text.strip().replace(',', '')) if price_element else None
38
38
 
39
39
  # Get currency symbol
40
40
  currency_element = soup.select_one('.a-price-symbol')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: amzpy
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: A lightweight Amazon scraper library.
5
5
  Home-page: https://github.com/theonlyanil/amzpy
6
6
  Author: Anil Sardiwal
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="amzpy",
5
- version="0.1.1",
5
+ version="0.1.2",
6
6
  description="A lightweight Amazon scraper library.",
7
7
  long_description=open("README.md").read(),
8
8
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes