Answer the question
In order to leave comments, you need to log in
How to organize the parsing of IM products in python?
I understand that there is a lot of information on the Internet on this topic, but I wanted to answer a few questions, but I did not find the answer.
In general, you need to make a parser that will collect data from several resources (products, prices, delivery times, etc.) and display it in some kind of django view, for example. Products are updated quite often, there may be the same product from one supplier, but in different warehouses. The user, in principle, can wait 10 seconds. Price analytics is not needed, purely information from whom is cheaper. Based on all this, does it make sense to write to the database? And how to organize such a task?
Answer the question
In order to leave comments, you need to log in
Parse on demand? Nonsense. Well, unless you use Celery, send the user to a page where he will wait for the result. But the results of parsing in any case to save in the database.
Best kept anyway
Depending on the complexity of the parsing - [ celery ] + ( requests + lxml / celery + scrappy )
Based on all this, does it make sense to write to the database?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question