蒸汽市场货币和XML格式

蒸汽市场货币和XML格式

本文介绍了蒸汽市场货币和XML格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图以特定货币在市场上获得商品页面,尝试添加

Im trying to get an item page on market in certain currency, tried to add

Accept-Language: ru-RU\r\n

Accept-Language: ru-RU, ru\r\n

Accept-Language: ru, ru-RU;q=0.8\r\n

到标题但是蒸汽忽略它并且总是给出一个混合卢布,欧元和美元的页面。

to header but steam ignores it and always gives a page with mixed rubles, euros and dollars.

另外,我如何获得xml格式的页面? ?format = xml和?xml = 1不起作用,尝试使用 application / xml * / *

Also, how can i get a page in xml format? ?format=xml and ?xml=1 dont work, tried with application/xml and */*

推荐答案

意思是,如果您从登录的浏览器中查看市场,并且您的钱包中的资金不在卢布,您将看不到卢布。

Meaning, if you are looking at the market from a browser you are logged in on and you have funds in your wallet that are not in Rubles, you won't see Rubles.

然而,你可以解决这个问题。如果您退出市场并访问您的URL,则可以通过两个参数来强制语言和区域更改。

You can, however, get around this. If you log out of the market and visit your URL, there are two parameters you can pass for force language and region changes.

例如,使用常用的Supply Crate密钥: http://steamcommunity.com/market/listings/440/Mann%20Co.%20Supply%20Crate%20Key?l=russian&cc=ru

For example, using the ever popular Supply Crate Key: http://steamcommunity.com/market/listings/440/Mann%20Co.%20Supply%20Crate%20Key?l=russian&cc=ru

请注意 l cc 参数。 l 将语言设置为俄语, cc 将该区域设置为俄罗斯。

Notice the l and cc parameters. The l is setting the language to Russian and the cc is setting the region to Russia.

现在,这似乎不适用于整个页面。显示历史趋势的图表仍显示为美元,即使周围的文本是俄语。

Now, this doesn't appear to work on the entire page. The graph showing historical trends still appears to be in USD, even though the surrounding text is in Russian.

但是,单个物品清单实际上确实改变了货币。

But, the individual listings of items did, in fact, change currencies.

这篇关于蒸汽市场货币和XML格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 05:51