amzpy 0.2.0__tar.gz → 0.2.1__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.4
2
2
  Name: amzpy
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A lightweight Amazon scraper library.
5
5
  Home-page: https://github.com/theonlyanil/amzpy
6
6
  Author: Anil Sardiwal
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: amzpy
3
- Version: 0.2.0
3
+ Version: 0.2.1
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.2.0",
5
+ version="0.2.1",
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