amzpy 0.2.0__py3-none-any.whl → 0.2.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/session.py
CHANGED
@@ -97,6 +97,9 @@ class AmzSession:
|
|
97
97
|
|
98
98
|
# Set browser impersonation if provided, otherwise use default
|
99
99
|
self.session.impersonate = impersonate or self.config['DEFAULT_IMPERSONATE']
|
100
|
+
|
101
|
+
# Get and Set Cookies from the base URL
|
102
|
+
self.session.get(self.base_url, headers=headers)
|
100
103
|
|
101
104
|
# Configure proxies if provided
|
102
105
|
if proxies:
|
@@ -106,6 +109,7 @@ class AmzSession:
|
|
106
109
|
print(f"AmzSession initialized for amazon.{country_code}")
|
107
110
|
print(f"Impersonating: {self.session.impersonate}")
|
108
111
|
print(f"User-Agent: {headers['User-Agent'][:50]}...")
|
112
|
+
print("Fetched cookies:", self.session.cookies.get_dict())
|
109
113
|
if proxies:
|
110
114
|
print(f"Using proxies: {proxies}")
|
111
115
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
amzpy/__init__.py,sha256=iAjHxasVnhFoKHX2SrUs35wPlMJeWjqvb3W7A2_U-0c,587
|
2
2
|
amzpy/parser.py,sha256=vZ9RcGlizMf5H-YkkEDEcLziCFr39vTFTLE_SAeE_xg,27953
|
3
3
|
amzpy/scraper.py,sha256=I_bR1WZVwu2IAUM1TyAaEutNiMoBqzhqMpuU0iny6ME,8736
|
4
|
-
amzpy/session.py,sha256=
|
4
|
+
amzpy/session.py,sha256=espSB46RNhdmy7bI6wjXVyxOLPEbdRDL1656hPWskX4,9317
|
5
5
|
amzpy/utils.py,sha256=wKPRUk2lypkAjiPVRPhH-lpHqExs1AKP4YyEYQG2HMs,2658
|
6
6
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
tests/test_scraper.py,sha256=XVbRrjM-b8ihuPjx5XezEU5o5twJ7xSBwp1ez28OcKs,582
|
8
|
-
amzpy-0.2.
|
9
|
-
amzpy-0.2.
|
10
|
-
amzpy-0.2.
|
11
|
-
amzpy-0.2.
|
8
|
+
amzpy-0.2.1.dist-info/METADATA,sha256=rcp81HoNfKofsaxrlKs4xOrxCaHH7c2iHfq2oIu4wQ0,7637
|
9
|
+
amzpy-0.2.1.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
10
|
+
amzpy-0.2.1.dist-info/top_level.txt,sha256=Srr5VxRSsZN9fziW9RLJtXt4o0dXk-b64YMijWr4y4Y,12
|
11
|
+
amzpy-0.2.1.dist-info/RECORD,,
|
File without changes
|