代码从官方网站检索学术成果数据到我自己的网站? [英] code to retrieve academic result data from the official site to my own site?
问题描述
我正在创建一个学术/社区网站。我的网站要求之一是从官方网站获取结果。我将在我的网站上创建一个结果模块,其中将有学生注册号作为输入,在提交时它将显示从官方网站获得的结果。
我是发现很难将数据从一个站点传递到另一个站点。官方网站正在使用Post方式为学生注册号码输入。
但没有进入官方网站页面我需要在我自己的网站上获得结果
请帮我详细介绍编程代码示例。我们将非常感谢。谢谢
I am creating a academic/community website . One of my site requirement is to obtain the result from the official site . I will be creating a result module on my site which will have students reg number as input and on submission it will show the result obtained from the official website .
I am finding it difficult to pass the data from one site to other . The official website is using Post method for students register number input.
but without going to official site page i need to get result in my own website
Please help me with detailed approach with programming code sample . It will be highly appreciated . Thanks
推荐答案
确定它应该是Java还是PHP或其他东西,请阅读使用这些技术之一的Web抓取。另见:
http://en.wikipedia.org/wiki/Web_scraping [< a href =http://en.wikipedia.org/wiki/Web_scrapingtarget =_ blanktitle =New Window> ^ ]。
更确切地说,学会发送HTTP请求并接收HTTP响应。请参阅:
http://en.wikipedia.org/wiki/Http [< a href =http://en.wikipedia.org/wiki/Httptarget =_ blanktitle =New Window> ^ ],
http://en.wikipedia.org/wiki/HTTP_request [ ^ ],
http ://en.wikipedia.org/wiki/HTTP_response [ ^ ]。
[结束编辑]
正如Tadit Dash所说,如果是某些Web服务或者存在其他一些API,使用它。
-SA
Decide if it should be Java or PHP or something else, read about Web scraping using one of these technologies. See also:
http://en.wikipedia.org/wiki/Web_scraping[^].
More exactly, learn to send HTTP request and receive HTTP response. Please see:
http://en.wikipedia.org/wiki/Http[^],
http://en.wikipedia.org/wiki/HTTP_request[^],
http://en.wikipedia.org/wiki/HTTP_response[^].
[END EDIT]
As Tadit Dash says, if some Web Service or some other API exists, use it.
—SA
你需要一个网络蜘蛛将内容从一个站点移动到另一个站点
you need a web Spider to move contents from one site to another
这篇关于代码从官方网站检索学术成果数据到我自己的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!