pytrends-modern 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.
- {pytrends_modern-0.1.0.dist-info → pytrends_modern-0.1.1.dist-info}/METADATA +8 -8
- {pytrends_modern-0.1.0.dist-info → pytrends_modern-0.1.1.dist-info}/RECORD +6 -6
- {pytrends_modern-0.1.0.dist-info → pytrends_modern-0.1.1.dist-info}/WHEEL +0 -0
- {pytrends_modern-0.1.0.dist-info → pytrends_modern-0.1.1.dist-info}/entry_points.txt +0 -0
- {pytrends_modern-0.1.0.dist-info → pytrends_modern-0.1.1.dist-info}/licenses/LICENSE +0 -0
- {pytrends_modern-0.1.0.dist-info → pytrends_modern-0.1.1.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytrends-modern
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Modern Google Trends API - Combining the best of pytrends, with RSS feeds, Selenium scraping, and enhanced features
|
|
5
5
|
Author: pytrends-modern contributors
|
|
6
6
|
License: MIT
|
|
@@ -87,7 +87,7 @@ pip install pytrends-modern[all]
|
|
|
87
87
|
### Basic Usage
|
|
88
88
|
|
|
89
89
|
```python
|
|
90
|
-
from
|
|
90
|
+
from pytrends_modern import TrendReq
|
|
91
91
|
|
|
92
92
|
# Initialize
|
|
93
93
|
pytrends = TrendReq(hl='en-US', tz=360)
|
|
@@ -115,7 +115,7 @@ print(related['Python']['top'])
|
|
|
115
115
|
### RSS Feed (Fast Real-Time Data)
|
|
116
116
|
|
|
117
117
|
```python
|
|
118
|
-
from
|
|
118
|
+
from pytrends_modern import TrendsRSS
|
|
119
119
|
|
|
120
120
|
# Get trending searches with rich media
|
|
121
121
|
rss = TrendsRSS()
|
|
@@ -303,7 +303,7 @@ pytrends = TrendReq(
|
|
|
303
303
|
|
|
304
304
|
```python
|
|
305
305
|
import asyncio
|
|
306
|
-
from
|
|
306
|
+
from pytrends_modern import AsyncTrendReq
|
|
307
307
|
|
|
308
308
|
async def get_trends():
|
|
309
309
|
pytrends = AsyncTrendReq(hl='en-US')
|
|
@@ -317,8 +317,8 @@ df = asyncio.run(get_trends())
|
|
|
317
317
|
### Rate Limit Handling
|
|
318
318
|
|
|
319
319
|
```python
|
|
320
|
-
from
|
|
321
|
-
from
|
|
320
|
+
from pytrends_modern import TrendReq
|
|
321
|
+
from pytrends_modern.exceptions import TooManyRequestsError
|
|
322
322
|
|
|
323
323
|
pytrends = TrendReq(retries=5, backoff_factor=0.5)
|
|
324
324
|
|
|
@@ -332,7 +332,7 @@ except TooManyRequestsError:
|
|
|
332
332
|
### Batch Processing
|
|
333
333
|
|
|
334
334
|
```python
|
|
335
|
-
from
|
|
335
|
+
from pytrends_modern import TrendReq
|
|
336
336
|
import time
|
|
337
337
|
|
|
338
338
|
keywords = ['Python', 'JavaScript', 'Rust', 'Go', 'Java']
|
|
@@ -352,7 +352,7 @@ for kw in keywords:
|
|
|
352
352
|
pytest
|
|
353
353
|
|
|
354
354
|
# With coverage
|
|
355
|
-
pytest --cov=
|
|
355
|
+
pytest --cov=pytrends_modern
|
|
356
356
|
|
|
357
357
|
# Specific test
|
|
358
358
|
pytest tests/test_request.py::test_interest_over_time
|
|
@@ -6,9 +6,9 @@ pytrends_modern/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
6
6
|
pytrends_modern/request.py,sha256=gtD_rUd4DHlJ1AVDy85-7bVHv0S6KsksVSRK-i4Rv10,28326
|
|
7
7
|
pytrends_modern/rss.py,sha256=G4JdSg5CYIlBNMIvZDV73uBUoTV5k77tHq2LE9altFU,11435
|
|
8
8
|
pytrends_modern/utils.py,sha256=xPf4nz4c8Mn-737PZTe6o3HChjZvIR8brIftNg0-IFE,6875
|
|
9
|
-
pytrends_modern-0.1.
|
|
10
|
-
pytrends_modern-0.1.
|
|
11
|
-
pytrends_modern-0.1.
|
|
12
|
-
pytrends_modern-0.1.
|
|
13
|
-
pytrends_modern-0.1.
|
|
14
|
-
pytrends_modern-0.1.
|
|
9
|
+
pytrends_modern-0.1.1.dist-info/licenses/LICENSE,sha256=4K_FiN4IB1h5rffiOC8s5Tpxiv161v0eNIQJMDbvC0o,1469
|
|
10
|
+
pytrends_modern-0.1.1.dist-info/METADATA,sha256=LVZ3zU0yHcf4LvLvuBLzwlhry7pkr8NU71kgTo-KWRs,10922
|
|
11
|
+
pytrends_modern-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
+
pytrends_modern-0.1.1.dist-info/entry_points.txt,sha256=1ilOUXV2wt8NqQp2ViD-obi9k8iQANEa3eU-7S3jTgs,61
|
|
13
|
+
pytrends_modern-0.1.1.dist-info/top_level.txt,sha256=bbuIEWVfkaA-sBTKf-Dzau5Ll2zlHs21o0zWtCmQG50,16
|
|
14
|
+
pytrends_modern-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|