Answer the question
In order to leave comments, you need to log in
How to copy a piece of content from a website using nodejs?
There is an online store in which you need to copy the description of the goods and some attributes (not all!). What is the name of such a process? And where should I dig further to implement my plan on nodejs?
Answer the question
In order to leave comments, you need to log in
This content tybzing is called, but culturally, in a bourgeois style, krawling . This can be done using HTTP requests with the native node library http , or using the npm library request . The resulting pages need to be parsed and saved in the required format in the database. For parsing, either regular expressions or a library like cheerio are suitable. If these are products with a clear structure, then it is more logical to use PostgreSQL , and if the products are very different, then you can write them to the document base with an arbitrary set of fields, for example, in MongoDB .
It's called " parsing "
Google for "nodejs site scraper", "nodejs site scraper", "nodejs site scraper"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question