N
N
Nikolai Antonov2015-06-12 01:40:13
Node.js
Nikolai Antonov, 2015-06-12 01:40:13

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

3 answer(s)
T
Timur Shemsedinov, 2015-06-12
@my-nickname

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 .

D
D', 2015-06-12
@Denormalization

It's called " parsing "
Google for "nodejs site scraper", "nodejs site scraper", "nodejs site scraper"

L
l0urenc, 2015-06-13
@l0urenc

Also good is CasperJS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question