Skip to content

Commit

Permalink
Merge pull request #453 from frruit/bugfix/request_user_agent
Browse files Browse the repository at this point in the history
Yahoo 404 - Changed the request User-Agent to accepted value
  • Loading branch information
vladisld committed Jul 17, 2021
2 parents 0fa63ef + 2f9ad7b commit e2674b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backtrader/feeds/yahoo.py
Expand Up @@ -268,6 +268,7 @@ def start_v7(self):

crumb = None
sess = requests.Session()
sess.headers['User-Agent'] = 'backtrader'
for i in range(self.p.retries + 1): # at least once
resp = sess.get(url, **sesskwargs)
if resp.status_code != requests.codes.ok:
Expand Down

1 comment on commit e2674b1

@jarvisa98
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for solve the problem i have facing the issue to my website cost to wrap a car and find the aim tool for 8 ball pool premium unlocked

Please sign in to comment.