How does one regularly retrieve news from the Internet and store it locally?

Source: Internet
Author: User
How does one regularly retrieve news from the Internet and store it locally? Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiNetwork/html/delphi_20061214154538128.html
How does one regularly retrieve news from the Internet and store it locally?
Example: http://www.ah.xinhuanet.com/
Every morning at AM, I regularly extract 10 pieces of news in the middle and store them in the database?
The first time I did this kind of work, I was a little confused!

No one? Online waiting

Up someone may say the page number of the analysis

1. Download the news homepage to your local device.
2. Use bsalas embeddedwb for analysis
3. Analyze the latest news
4. I made a self-check for sports.tom.com/nba. I only need to check the information of the Rocket. I have not read the information automatically downloaded and asked me to prompt me. You can set the number of minutes to refresh.

RSS aggregation for websites

1. Use XMLHTTP to open the homepage of a news website
2. Find the news link page on the page based on the website features
3. Use XMLHTTP to download the page and parse the page content and save it to your local device.

The website features and Resolution Methods of news pages are best recorded in text files. For example, regular expressions are used to adapt to website adjustments.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.