每天从另一个网站获取内容 [英] Grab content from another website daily

查看:88
本文介绍了每天从另一个网站获取内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的问题.我正在创建一个具有新闻"标签的网站.我想在新闻"选项卡上获得的是来自其他新闻网站的更新内容.

Here is my problem. I am creating a website which has a "news" tab. What i want on the news tab is updated content from another news website.

有什么方法可以捕获发布在另一个网站上的纯文本,将其发布在我网站的新闻选项卡上,并在该网站发布新内容时自动更新?有人可以向正确的方向推动我,以便我可以学习如何做吗?

Is there any way to grab plain text posted on another website, post it on a news tab in my website, and update automatically when the website posts new content? Can anybody push me in the right direction so i can learn how to do this?

我非常了解HTML,但是缺乏PHP和Javascript的技能.为了实现这一目标,我必须学习什么?

I know HTML very well, but lack skill in PHP and Javascript. What do i have to learn in order to pull this off?

推荐答案

本书的一部分演示了如何从另一个网站读取数据并使用PHP对其进行解析.第10章,第328页访问其他网站".

This book has a section that demonstrates reading of data from another website and parsing it using PHP. Chapter 10, pg 328 "Accessing other websites".

http://www.amazon.com/PHP -面向对象的高级编程-QuickPro/dp/0321832183/

但是,如果您是PHP的新手,那么Advanced Book是没有起点的.我建议您采用以下任何一种方法来开始您的工作.

Though, if you're new to PHP, and advanced Book is no place to start. I would recommend either of the following to get you started down that road.

http://www.amazon.com/PHP -MySQL-Dynamic-Web-Sites/dp/0321784073/

http://www.amazon.com/PHP -Web-Visual-QuickStart-Guide/dp/0321733452/

使用高级"书也许可以使您需要的东西拼凑在一起,但是使用高级技能的最好方法是从初学者开始学习!

You may be able to cobble together what you need using the Advanced book, but the best way to use advanced skills is to start learning as a beginner!

这篇关于每天从另一个网站获取内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆