Pytrends-async

Latest version: v0.3.2

Safety actively analyzes 682471 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.2

Changed
- Updated underlying HTTPX library to 0.9.5 from 0.9.3

0.3.1

Fixed
- Fixed import of `asyncio.sleep` in `dailydata.py`

0.3.0

Added
- Retry support has been reintroduced (back by tenacity). Retry settings only apply when proxies are not in use.
- Python 3.8 is now offically tested and supported.

Changed
- Reintroduced `retries` and `backoff_factor` to `TrendsReq.__init__()`. `retries` and `backoff_factor` are disabled by default (set to 0). These parameters will only affect retrying if proxies are not in use.
- Proxies that return a 429 (Too Many Requests) will no longer be removed the proxy list. Instead, another proxy (or no proxy if all proxies have been exausted) will be used in the next request.
- Proxies that trigger an error that is not caused by a 429 response code (ConnectionRefusedError, SSLError) will be placed in `TrendReq.blacklisted_proxies` instead of removed from the proxies list.
- Underyling httpx library has been updated to version 0.9.3.

Fixed
- `dailydata.py` now uses `asyncio.sleep` instead of `time.sleep`.

0.2.1

Changed
- Fixed importing issue

0.2.0

Added
- This changelog :)
- Proxy support has been introduced but still needs further testing.

Changed
- `GetNewProxy()` replaced with internal method `_iterate_proxy()`
- Protocol changed from HTTP/2 to HTTP/1.1. This resolves a KeyError that was occurring with the underlying http2 lib.
- HTTP connections are now properly cleaned up after use.

0.1.0

- Initial release of pytrends-async for testing purposes.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.