I want to collect the headlines and URLs of news from a website. What do you want to do?

Source: Internet
Author: User
I want to be a school portal, the portal is the news of the school's news network. If I want to re-portal a chunk of news headlines and links to the web, how do I collect them? Do you want to collect it once a day or will it automatically collect the latest content? Ask for details, novice, no contact with the collection ~ ~


Reply to discussion (solution)

What do you want to collect? Just read it from the database.

How to write your code and how to collect it, if you want to update the latest content at any time, you will be on time to read the data analysis is up to date.

Directly with File_get_content to get the content of the website you want to collect, in the regular expression is matching the content you want, in their own storage is good AH

What do you want to collect? Just read it from the database.
I'm just doing the test, I can't get the database information ~ ~

The news list on the general portal is sorted by time, collected daily, and the first few of the latest updates can be collected. Write a timed task and collect it once or n times a day

Ecshop has a mission planning function you can refer to

  • 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.