U
U
Uzair Izha2015-11-05 14:55:51
PHP
Uzair Izha, 2015-11-05 14:55:51

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

2 answer(s)
V
Vladislav Kopylov, 2015-11-05
@kopylov_vlad

Beltoev wrote everything correctly. For implementation, you can use any ready-made libraries, for example, simplehtmldom.sourceforge.net

Z
Zelimkhan Beltoev, 2015-11-05
@Beltoev

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 question

Ask a Question

731 491 924 answers to any question