Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/319.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 循环美化组脚本+;结果问题_Python_Beautifulsoup_Spyder - Fatal编程技术网

Python 循环美化组脚本+;结果问题

Python 循环美化组脚本+;结果问题,python,beautifulsoup,spyder,Python,Beautifulsoup,Spyder,我正在尝试为该商品制作steam社区商店实时价格脚本 这是我的密码 import requests from bs4 import BeautifulSoup r=requests.get('https://steamcommunity.com/market/itemordershistogram?country=IN&language=turkish&currency=17&item_nameid=1&two_factor=0') main_da

我正在尝试为该商品制作steam社区商店实时价格脚本

这是我的密码

    import requests
from bs4 import BeautifulSoup

r=requests.get('https://steamcommunity.com/market/itemordershistogram?country=IN&language=turkish&currency=17&item_nameid=1&two_factor=0') 

main_data=r.json()
html=main_data['sell_order_summary']

soup=BeautifulSoup(html,"html.parser")
soup.text


我希望它更新笑脸和循环它。我如何做到这一点?

Hey@steasap请提及目标URL网页上没有10551可供出售,起始价为21,20 TL部分,它会动态变化,因此现在显示10520可供出售,起始价为2.46美元