gpt4 book ai didi

python - 在谷歌财经中搜索股票代码

转载 作者:行者123 更新时间:2023-12-01 02:53:09 25 4
gpt4 key购买 nike

我正在尝试通过 Google 财经验证股票行情。例如:当我输入“IBEX”时,我期望谷歌金融返回第二个选择而不是第一个。我怎样才能存档这个?

ticker = 'IBEX'    
url="https://www.google.com/finance?q={}".format(ticker)

Searching stock ticker in google finance

Default result, not expected

Expected Result

最佳答案

正确的股票代码是 LON:IBEX,您需要将其 urlencodeLON%3AIBEX

相关:How to create a stock quote fetching app in python

关于python - 在谷歌财经中搜索股票代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44511080/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com