I
I
IFLP2018-05-24 22:40:56
Python
IFLP, 2018-05-24 22:40:56

How to ask only everything and on the page, keeping the sequence and discarding everything unnecessary?

There is an example - fb.ru/article/39772/samostoyatelnyie-chasti-rechi
You need to parse the content from here <p>and <h1-5>keeping the sequence, through bf4 and requests.
It turns out only <p>without <h1>or all <h1>after all <p>. And I need to keep the sequence.
Tell me how to do it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question