amzpy 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl
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.
amzpy/parser.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
from bs4 import BeautifulSoup
|
2
2
|
from typing import Dict, Optional
|
3
|
-
from engine import RequestEngine
|
3
|
+
from amzpy.engine import RequestEngine
|
4
4
|
|
5
5
|
def parse_product_page(html_content: str, url: str = None, engine: RequestEngine = None, max_retries: int = 0) -> Optional[Dict]:
|
6
6
|
"""
|
amzpy/scraper.py
CHANGED
@@ -3,9 +3,9 @@ The main scraper module for the Amazon Product API.
|
|
3
3
|
"""
|
4
4
|
|
5
5
|
from typing import Dict, Optional
|
6
|
-
from engine import RequestEngine
|
7
|
-
from parser import parse_product_page
|
8
|
-
from utils import parse_amazon_url
|
6
|
+
from amzpy.engine import RequestEngine
|
7
|
+
from amzpy.parser import parse_product_page
|
8
|
+
from amzpy.utils import parse_amazon_url
|
9
9
|
|
10
10
|
class AmazonScraper:
|
11
11
|
"""Main scraper class for Amazon product data"""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: amzpy
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: A lightweight Amazon scraper library.
|
5
5
|
Home-page: https://github.com/theonlyanil/amzpy
|
6
6
|
Author: Anil Sardiwal
|
@@ -35,6 +35,7 @@ Dynamic: requires-python
|
|
35
35
|
Dynamic: summary
|
36
36
|
|
37
37
|
# AmzPy - Amazon Product Scraper
|
38
|
+
[](https://pypi.org/project/amzpy/)
|
38
39
|
|
39
40
|
AmzPy is a lightweight Python library for scraping product information from Amazon. It provides a simple interface to fetch product details like title, price, currency, and image URL while handling anti-bot measures automatically.
|
40
41
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
amzpy/__init__.py,sha256=D_HAyk3vKeexDTiuLozKEHMPqpWDX_hecvXdGsRL9LE,535
|
2
2
|
amzpy/engine.py,sha256=5ZyzdaQnxEZorYZMxav-qJTPdnRHXFyimwDJvicjtbI,1171
|
3
|
-
amzpy/parser.py,sha256=
|
4
|
-
amzpy/scraper.py,sha256=
|
3
|
+
amzpy/parser.py,sha256=UxveeNPFu6gvk29LxH3Mp7Lp2USBgGCItJu_aK5C8UI,2354
|
4
|
+
amzpy/scraper.py,sha256=Jp6l9IruNZMDo1SgZI-pvz2HTBMSKoEoWmybSEkDGSE,1710
|
5
5
|
amzpy/utils.py,sha256=iyrAnhDB_1Lnn49CVYEowFZ1QZhonl8U23ZltR_WyZ4,1132
|
6
6
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
tests/test_scraper.py,sha256=XVbRrjM-b8ihuPjx5XezEU5o5twJ7xSBwp1ez28OcKs,582
|
8
|
-
amzpy-0.1.
|
9
|
-
amzpy-0.1.
|
10
|
-
amzpy-0.1.
|
11
|
-
amzpy-0.1.
|
8
|
+
amzpy-0.1.1.dist-info/METADATA,sha256=i7o36TDU2j5_BMw9jUeC64zWhFoIzFGJMwyy3MLmxZ4,2712
|
9
|
+
amzpy-0.1.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
10
|
+
amzpy-0.1.1.dist-info/top_level.txt,sha256=Srr5VxRSsZN9fziW9RLJtXt4o0dXk-b64YMijWr4y4Y,12
|
11
|
+
amzpy-0.1.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|