S
S
Sergey Shakhov2020-04-22 17:28:47
Parsing
Sergey Shakhov, 2020-04-22 17:28:47

content downloader. how to parse goods?

I'm the first time)
the question is whether it is necessary to parse by product categories or take, for example, "boots", parse everything that is. rubber, suede, etc. and after already on the site add them manually to the appropriate categories?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Shvyrev, 2020-04-23
@CellycoMobiles

Parse everything that is and then add it to the category.
To make a fast parser, you need to separate the operations of obtaining data (sending a request to the server, parsing content, etc.) from the operations of reification (representation in the form of a model). They have different cost of machine time. Parallel execution saves a lot of time.
In your case, there is no need to manually add in the categories. When parsing the received content, get the category and other data, save it in the database. Sample after the end of parsing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question