以下是我的情况:我正在从Steam的游戏页面抓取HTML来收集各种游戏的标记信息。理想情况下,我会使用Steam的Web API来收集这些标签,但他们不支持这些...
所以这里是TF2的一个例子:来自http://store.steampowered.com/app/440
我已经将这些标签抓取并编译成JSON:
{"steam_tags": [
{
"iconUrl": "http://store.akamai.steamstatic.com/public/images/v6/ico/ico_multiPlayer.png",
"name": "Multi-player"
},
{
"icon_url": "http://store.akamai.steamstatic.com/public/images/v6/ico/ico_multiPlayer.png",
"name": "Cross-Platform Multiplayer"
},
{
"icon_url": "http://store.akamai.steamstatic.com/public/images/v6/ico/ico_achievements.png",
"name": "Steam Achievements"
},
{
"icon_url": "http://store.akamai.steamstatic.com/public/images/v6/ico/ico_cards.png",
"name": "Steam Trading Cards"
},
{
"icon_url": "http://store.akamai.steamstatic.com/public/images/v6/ico/ico_cc.png",
"name": "Captions available"
},
{
"icon_url": "http://store.akamai.steamstatic.com/public/images/v6/ico/ico_workshop.png",
"name": "Steam Workshop"
}
]}
问题是这些直接来自HTML源的图片链接在任何浏览器中都显示为空白。
我错过了一些明显的东西吗?我觉得这不应该是困难的。