From e2cca11261b1d213bd3f370a7d2df10a6ff64ce3 Mon Sep 17 00:00:00 2001 From: Alvaro Bartolome Date: Tue, 18 Oct 2022 16:07:22 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9C=A8=20Use=20`tvc6.investing.com`=20in?= =?UTF-8?q?stead=20of=20`tvc4`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/investiny/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 6c519a8050ebff3f06ffea17e95c3adc8371fdff Mon Sep 17 00:00:00 2001 From: Alvaro Bartolome Date: Tue, 18 Oct 2022 16:07:53 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9D=20Update=20`README.md`=20and?= =?UTF-8?q?=20docs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- docs/differences-with-investpy.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 | From f3ae49b4d39ebf8aa39d1970c614deb589d968ce Mon Sep 17 00:00:00 2001 From: Alvaro Bartolome Date: Tue, 18 Oct 2022 16:08:07 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=94=96=20Set=20`investiny=20v0.7.2`?= =?UTF-8?q?=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- src/investiny/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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