You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from fastquant import get_yahoo_data, get_bt_news_sentiment
from datetime import datetime, timedelta
# we get the current date and delta time of 30 days
current_date = datetime.now().strftime("%Y-%m-%d")
delta_date = (datetime.now() - timedelta(30)).strftime("%Y-%m-%d")
data = get_yahoo_data("TSLA", delta_date, current_date)
sentiments = get_bt_news_sentiment(keyword="tesla", page_nums=3)
backtest("sentiment", data, sentiments=sentiments, senti=0.2)
Will result in AttributeError: 'BarContainer' object has no attribute 'get_zorder'
Digging into the issue, it seems that the businesstimes website returns only JavaScript and no more HTML. At least doing this:
will result in an empty body and a lot of javascript. Either I'm doing something wrong, or businesstimes has implemented some mechanism to disable such scraping
The text was updated successfully, but these errors were encountered:
Will result in
AttributeError: 'BarContainer' object has no attribute 'get_zorder'
Digging into the issue, it seems that the businesstimes website returns only JavaScript and no more HTML. At least doing this:
will result in an empty body and a lot of javascript. Either I'm doing something wrong, or businesstimes has implemented some mechanism to disable such scraping
The text was updated successfully, but these errors were encountered: