pytrends-modern 0.2.1__py3-none-any.whl → 0.2.2__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.
@@ -2,7 +2,7 @@
2
2
  pytrends-modern: Modern Google Trends API
3
3
  """
4
4
 
5
- __version__ = "0.2.1"
5
+ __version__ = "0.2.2"
6
6
  __author__ = "pytrends-modern contributors"
7
7
  __license__ = "MIT"
8
8
 
@@ -1,6 +1,6 @@
1
1
  """Browser configuration for Camoufox automation"""
2
2
 
3
- from typing import Optional
3
+ from typing import Optional, Union
4
4
  import os as os_module
5
5
 
6
6
 
@@ -18,7 +18,9 @@ class BrowserConfig:
18
18
 
19
19
  Args:
20
20
  headless: Run browser in headless mode (default: False)
21
- Set to 'virtual' on Linux to use Xvfb
21
+ - False: Show browser window (for local development)
22
+ - True: Standard headless mode (for servers with display)
23
+ - 'virtual': Use Xvfb virtual display (for Docker containers)
22
24
  proxy_server: Proxy server URL (e.g., 'http://proxy.com:8080')
23
25
  proxy_username: Proxy username (for authenticated proxies)
24
26
  proxy_password: Proxy password (for authenticated proxies)
@@ -47,7 +49,7 @@ class BrowserConfig:
47
49
 
48
50
  def __init__(
49
51
  self,
50
- headless: bool = False,
52
+ headless: Union[bool, str] = False,
51
53
  proxy_server: Optional[str] = None,
52
54
  proxy_username: Optional[str] = None,
53
55
  proxy_password: Optional[str] = None,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytrends-modern
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Modern Google Trends API - Combining the best of pytrends, with RSS feeds, Selenium scraping, DrissionPage browser automation, and enhanced features
5
5
  Author: pytrends-modern contributors
6
6
  License: MIT
@@ -175,11 +175,16 @@ RUN mkdir -p /root/.config && \
175
175
  cd /root/.config && \
176
176
  tar -xzf /tmp/profile.tar.gz
177
177
 
178
- # 3. Use headless mode in container
179
- config = BrowserConfig(headless=True)
178
+ # 3. Use headless="virtual" in container
179
+ config = BrowserConfig(headless="virtual") # Use Xvfb for Docker
180
180
  ```
181
181
 
182
- See `Dockerfile.example` for complete Docker setup.
182
+ **Headless Options:**
183
+ - `headless=False` - Show browser window (local development)
184
+ - `headless=True` - Standard headless (servers with display)
185
+ - `headless="virtual"` - Xvfb virtual display (Docker containers)
186
+
187
+ See `Dockerfile.example` and `examples/example_docker_usage.py` for complete Docker setup.
183
188
 
184
189
  ⚠️ **Security**: Profile contains Google session - keep secure, don't commit to git!
185
190
 
@@ -1,6 +1,6 @@
1
- pytrends_modern/__init__.py,sha256=Nncyjs_MBTYOS6sduXVsvSvmS2eGpLCkQppqROXgvbU,844
1
+ pytrends_modern/__init__.py,sha256=lHYGzQ8olHW21bfEAYaxne-1Bm_WZ8NF8YCIIAr-KoE,844
2
2
  pytrends_modern/browser_config.py,sha256=aEznKEaAiJ1vFPYMeNc2wiyehijnleNBFoiZIXWQcRQ,3513
3
- pytrends_modern/browser_config_camoufox.py,sha256=RADieQug_3-7-Pfdr_YNs929zIwaaWicyn9kAfbqh-E,2532
3
+ pytrends_modern/browser_config_camoufox.py,sha256=lJ_32V_BL3EuZLX1kDx4tM0ny7u9k86aHMOlwfn1seg,2720
4
4
  pytrends_modern/camoufox_setup.py,sha256=WkytaNt64Gro8wJUPXaoUPhesDRvz460UeHGzETR6ds,10534
5
5
  pytrends_modern/cli.py,sha256=lwuXzFY5S7glSGL180dFkpnTcVsM7JfTzJ2vLKs8TLA,12784
6
6
  pytrends_modern/config.py,sha256=zPCMgdAFwcrQPMYO87dLAirkxnvpvsTx9DkWZGkl8zk,5198
@@ -12,9 +12,9 @@ pytrends_modern/request_async.py,sha256=9QUNDXPqAyUHxY_zoRMyt6gbXL41Fe69ZVmMun3-
12
12
  pytrends_modern/rss.py,sha256=6Qq8MsVJu9WtE5UcYlUze7EexT81Mq4af7pPFOMcDS0,11414
13
13
  pytrends_modern/scraper.py,sha256=x1xbFjUs7ULOBlIWLZ90G6WXJwB2EYuwUo0dWmHAjEQ,9706
14
14
  pytrends_modern/utils.py,sha256=xPf4nz4c8Mn-737PZTe6o3HChjZvIR8brIftNg0-IFE,6875
15
- pytrends_modern-0.2.1.dist-info/licenses/LICENSE,sha256=4K_FiN4IB1h5rffiOC8s5Tpxiv161v0eNIQJMDbvC0o,1469
16
- pytrends_modern-0.2.1.dist-info/METADATA,sha256=sEL-MMn2yMgd5euAVwGNNbygchBGZ9AVZB4xR90wyHc,14302
17
- pytrends_modern-0.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- pytrends_modern-0.2.1.dist-info/entry_points.txt,sha256=1ilOUXV2wt8NqQp2ViD-obi9k8iQANEa3eU-7S3jTgs,61
19
- pytrends_modern-0.2.1.dist-info/top_level.txt,sha256=bbuIEWVfkaA-sBTKf-Dzau5Ll2zlHs21o0zWtCmQG50,16
20
- pytrends_modern-0.2.1.dist-info/RECORD,,
15
+ pytrends_modern-0.2.2.dist-info/licenses/LICENSE,sha256=4K_FiN4IB1h5rffiOC8s5Tpxiv161v0eNIQJMDbvC0o,1469
16
+ pytrends_modern-0.2.2.dist-info/METADATA,sha256=UL1kkTMnbNbLnL1xVdOscVGHL9CRpkD_g-W7m9Y7jK4,14585
17
+ pytrends_modern-0.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ pytrends_modern-0.2.2.dist-info/entry_points.txt,sha256=1ilOUXV2wt8NqQp2ViD-obi9k8iQANEa3eU-7S3jTgs,61
19
+ pytrends_modern-0.2.2.dist-info/top_level.txt,sha256=bbuIEWVfkaA-sBTKf-Dzau5Ll2zlHs21o0zWtCmQG50,16
20
+ pytrends_modern-0.2.2.dist-info/RECORD,,