script to read information from other sites

孤街醉人 提交于 2019-12-14 03:19:18

问题


a friend of mine wrote a script, which read information from other sites e.g. number of followers 3 ppl had and displayed them on his website. I was interested in doing such things. I searched for scripting and found out there are many scripting languages. How would I chose which one to learn? are they all the same? which one do u prefer to do my task? and finally any good reference you suggest? where I stand now: im basically starting from zero in scripting but I know how to code C, C++, HTML... Thanks=)


回答1:


If the sites you want to read from have an API for doing this (e.g. Twitter) then I would take a look at something like Yahoo! Query Language.

If they don't have an API then this Wikipedia article may be a good place to start: Web scraping

There's no specific language which is best for doing this kind of thing, it's down to what you prefer. I expect there are some C++ libraries out there for doing this.



来源:https://stackoverflow.com/questions/5961812/script-to-read-information-from-other-sites

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!