Answer the question
In order to leave comments, you need to log in
How to make an article parser?
Are there any examples? Whatever tips or algorithm of action. I want to learn and don't know where to start.
Parser from site to site
Answer the question
In order to leave comments, you need to log in
Beltoev wrote everything correctly. For implementation, you can use any ready-made libraries, for example, simplehtmldom.sourceforge.net
What exactly is causing the difficulty?
It's like a banal algorithm:
This is an example of the simplest parser.
Further, you can increase the functionality (automatic detection of new articles on the site using cron, uploading images to your server and replacing links to them in articles, or replacing links to images using .htaccess
, etc., etc.) there are ready-made libraries for this, but it's not so difficult to do it yourself
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question