diff --git a/README.md b/README.md index a349c30..807e9c5 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ available at Investing.com goes from 1 minute to monthly data. `investpy` uses Investing.com's APIs at https://www.investing.com/instruments/HistoricalDataAjax and at https://api.investing.com/api/financialdata/historical, that are Cloudflare protected and not working any more, -as you'll end up getting blocked with 403 Forbidden HTTP code; while `investiny` is using https://tvc4.investing.com/, +as you'll end up getting blocked with 403 Forbidden HTTP code; while `investiny` is using https://tvc6.investing.com/, which seems to be more reliable right now according to the ran tests, as well as providing intraday data. | | Intraday Data | Any Range Historical Data | Search Assets/Quotes | Dividends | Economic Calendar | Technical Indicators | Economic News | diff --git a/docs/differences-with-investpy.md b/docs/differences-with-investpy.md index 7208756..cedad64 100644 --- a/docs/differences-with-investpy.md +++ b/docs/differences-with-investpy.md @@ -10,7 +10,7 @@ available at Investing.com goes from 1 minute to monthly data. `investpy` uses Investing.com's APIs at https://www.investing.com/instruments/HistoricalDataAjax and at https://api.investing.com/api/financialdata/historical, that are Cloudflare protected and not working any more, -as you'll end up getting blocked with 403 Forbidden HTTP code; while `investiny` is using https://tvc4.investing.com/, +as you'll end up getting blocked with 403 Forbidden HTTP code; while `investiny` is using https://tvc6.investing.com/, which seems to be more reliable right now according to the ran tests, as well as providing intraday data. | | Intraday Data | Any Range Historical Data | Search Assets/Quotes | Dividends | Economic Calendar | Technical Indicators | Economic News | diff --git a/pyproject.toml b/pyproject.toml index 2895235..57895c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "investiny" -version = "0.7.1" +version = "0.7.2" packages = [ { include = "investiny", from = "src" }, ] diff --git a/src/investiny/__init__.py b/src/investiny/__init__.py index ae26ee7..b8ebe46 100644 --- a/src/investiny/__init__.py +++ b/src/investiny/__init__.py @@ -1,7 +1,7 @@ """`investiny `: `investpy` but made tiny.""" __author__ = "Alvaro Bartolome, alvarobartt @ GitHub" -__version__ = "0.7.1" +__version__ = "0.7.2" from investiny.historical import historical_data # noqa: F401 from investiny.info import info # noqa: F401 diff --git a/src/investiny/utils.py b/src/investiny/utils.py index 972af47..3af509c 100644 --- a/src/investiny/utils.py +++ b/src/investiny/utils.py @@ -22,7 +22,7 @@ def request_to_investing( Returns: A dictionary with the response from Investing.com API. """ - url = f"https://tvc4.investing.com/{uuid4().hex}/0/0/0/0/{endpoint}" + url = f"https://tvc6.investing.com/{uuid4().hex}/0/0/0/0/{endpoint}" headers = { "User-Agent": ( "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like"