![](/style/images/good.png)
![](/style/images/bad.png)
Get information on another website?
source link: https://www.codesd.com/item/get-information-on-another-website.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Get information on another website?
I'd like to fetch all latest news from this site (at the center board): http://web.hanu.vn/en/ My latest approach was parsing html by using Simple HTML DOM Parser in PHP but I think it's so slow. My idea is to fetch news from almost 20 similar sites like this site. They are all developed by Moodle so they have the same html format. However, with 1 site it takes several seconds to fetch => 20 sites require a lot of time. Is there any better approach rather than parsing HTML? Or should I store the result in the database and after a period of time updating it rather than fetching it for each user request? Am I doing the so-called "crawling", isn't it?
Or should I store the result in the database and after a period of time updating it rather than fetching it for each user request?
Yes, you should. And stick to parsing HTML, do not use regular expressions for parsing HTML.
And what you are trying to do is web scraping, not yet crawling (unless you really crawl the pages).
Related Articles
PowerShell - HTML Analysis: Get Information from a Website
How do I get information from another form?
How can I send information to another website and get its answer in Perl?
PHP - The fastest way to get content from another website and analyze that content
get information from a website with php, recursively browse each HTML node
Get information from another table with Propel?
SQL table getting information from another table based on an IF statement with a stored procedure
get information from another array where id = id
How to add get information form another file and use it in a variable
How to get information from an iframe that uses a flash image cursor using javascript?
How do I get a specific text from another website using jquery?
How to get json data from another website in Flask?
How to get information on the referral link?
Unable to get jQuery to get JSON from another domain (using JSONP)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK