S
S
Swartex2016-09-09 11:07:45
Python
Swartex, 2016-09-09 11:07:45

How to parse information on one site and save the file?

Hello everyone)
I actually work as a content manager in a fairly large company. Sometimes there is a lot of work for me alone, in order to improve my knowledge in programming, I want to somehow automate this process :)
I know HTML + CSS and have an average knowledge of JS, I am familiar with NodeJS and Python.

  1. What is better for this task NodeJS or Python?
  2. Is it better to write all the data to a CSV file at once?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
Maxim, 2016-09-09
Syomochkin @mak_sim

Python.
Where and how to write data is the third thing. You can always create a language structure with the data you need (a class, or just a dictionary), and then save it in one format or another, even in csv, even in the database.

U
ummahusla, 2016-09-09
@Antonoff

Noda, although many here will probably be for the python.

R
Roman, 2016-09-11
@skipirich

I don't care what language. Almost any language that is used on the web has a set of libraries for downloading and parsing a page. Grab whatever you like and go.

V
Vitaly, 2017-01-24
@vshvydky

I am for node and specifically for nightmare.js

H
hoarywolf, 2016-09-09
@hoarywolf

You ask strange questions
- some sites can be parsed with a single-line perl script, others need heavy phantom or nightmare because of scripts and ajax.
- in one case, for example, the name and prices are parsed, which can be put in csv, in another there is so much data that it is easier to immediately in the database, and in the third huge articles with pictures for which csv is not particularly suitable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question