A
A
Astrohas2017-01-11 08:24:29
Django
Astrohas, 2017-01-11 08:24:29

What is the best way to work with a Dom tree [python3]?

There are certain html texts that are inside certain tags whose attributes you want to change. For example, I want to read the src of all and replace it with something else. Is there any library for working with the DOM tree like, for example, in JavaScript?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2017-01-11
@Astrohas

lxml
Never use beautiful soup. Never.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question