How to supplement webpage capture for other sites across sites
Source: Internet
Author: User
In practical applications, we often encounter special situations, such as the need for news, weather forecasts, and so on, however, as personal websites or websites with low strength, we cannot do this with so much human, material, and financial resources. what should we do? Fortunately, resources are shared on the internet. we can use programs to automatically capture the pages of other sites and process them before they are applied in actual applications. we often encounter some special situations, for example, we need news, weather forecasts, and so on. However, as personal websites or websites with small strength, we cannot do this with so much human and material resources. what should we do?
Fortunately, resources are shared on the internet. we can use programs to automatically capture the pages of other sites and use them for processing.
What is the use? what the comrade-in-arms gave is not feasible. In fact, this function is provided in Php, that is, the curl library is used. Please refer to the following code!
But sometimes some errors may occur, but the download is complete! I asked foreigners, but they didn't give me a reply. if I really don't think I can, I just add a question in front of the function. so we only need to perform an appropriate analysis on $ txt, we can steal sina's news! However, it is better not to use it! To avoid legal disputes, I just want to tell you that Php is very powerful! You can do many things!
[This article is copyrighted by the author and osuo. if you need to reprint it, please indicate the author and its source]
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.