a question regarding webpage design
this project is to create a website for the company. one requirment is that the website can "extract" updated information from its competitor's website, which means, when i open our company's website, I can see updated info if the competitor's website updates.
how to realise this function? use what kind of programming language?
偶查了一下午,只找到个很类似的软件
但也不知道是什么做的。
http://www.2158.net/
[楂楂兔 (1-14 21:07, Long long ago)]
[ 传统版 |
sForum ][登录后回复]1楼
原理其实很简单不管什么语言里, 都可以读取对方的网页
( 比如 PHP 可以简单的fopen一个 URL, Java可以open对方的80socket)
然后匹配对应的pattern 取出内容就可以了
比如你知道 <title> .... </title> 一定是页面标题[winter (1-14 21:49, Long long ago)]
[ 传统版 |
sForum ][登录后回复]2楼