如何访问网站后面的XML文件 [英] How do I access the XML file behind the website
问题描述
您好,
我正在尝试查找包含此网站上所有教科书信息的xml文件: https://www.piercebookstore.com/buy_courselisting.asp
我如何找到xml文件?
我的尝试:
类似的网站是: bookstore.smc.edu
我发现它是xml文件。例如,我可以访问:
https://bookstore.smc.edu/textbooks_xml.asp?control=campus&campus=15&term=150
我怎样才能知道获取课本信息需要哪些字符串查询?例如,上述查询需要?term = 150。
Hello,
I'm trying to find the xml file that contains all the textbook information on this website: https://www.piercebookstore.com/buy_courselisting.asp
How can I find the xml file?
What I have tried:
A similar website is: bookstore.smc.edu
And I found it's xml file. For example, I can access this:
https://bookstore.smc.edu/textbooks_xml.asp?control=campus&campus=15&term=150
And how can I know what string queries I need to get textbook information? For example, the above query requires ?term=150.
推荐答案
您可以联系网站所有者并询问他们。
You contact the owners of the website(s) and ask them.
>
你不能 - 它根本不是应该暴露给外部世界的文件,甚至可能不存在。您发现通过ASPX页面公开的.edu站点(即大学或学校)并不意味着普通站点基于它们 - 他们更可能使用基于SQL或MySQL的数据库,因为它们是比XML文件更适合多用户访问,而XML文件基本上只是一个组织良好的文本文件。
你想要他们的数据吗?问他们一份副本。但是......我不会直接让你访问我的生产网站数据,也可能不会给你一份副本!
You can't - it's not a file that should be exposed to the outside world at all, and may not even exist. That you found a .edu site (i.e. a university or school) that exposed it via an ASPX page does not mean that "normal" sites are based on them - they are more likely to be using SQL or MySQL based databases as they are a lot more suitable for multiuser access than an XML file which is basically just a well organised text file.
You want their data? Ask them for a copy. But ... I wouldn't give you access to my production site data directly, and probably wouldn't give you a copy either!
如何访问网站背后的XML文件
How do I access the XML file behind the website
简答:你没有。
这就是网站的原则,客户无法访问背后的代码/数据。这是因为它是网站价值的原因。
获取此数据的唯一合法方式是获得所有者的授权。
Short answer: you don't.
That is the principle of websites, code/data behind is not accessible to client. That is because it is what makes the value of a website.
The only legal way to get this data is to get authorization from owner.
这篇关于如何访问网站后面的XML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!