Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸš‘οΈ Fix URL to point tvc6.investing.com as tvc4 is blocked #55

Merged
merged 3 commits into from
Oct 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion docs/differences-with-investpy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/investiny/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/investiny/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down