F
F
fruitourist2020-02-24 14:57:25
Python
fruitourist, 2020-02-24 14:57:25

How to parse site elements generated by Angular JS?

I want to parse the texts of tracks from genius.com, but there they are generated by a javascript or something similar: like, first routable-page has ng -non-bindable (bottom on the command line) - I think requests quickly takes what it has and leaves, - and after a few seconds (apparently, something is being loaded), the routable-page ng-non-bindable is replaced by ng-outlet , where the texts are contained. I searched on the Internet - they write something from JSON, but I don’t know how, well, like this. Help5e53b9a476628408808609.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Karbivnichy, 2020-02-24
@fruitourist

Maybe I misunderstood the question, but the text of the song is taken by requests'stom from genius.com literally in one or two lines.
5e53c5b28e69f864577165.png

R
Roman Fov, 2020-02-24
@Roman-Fov

Look in the head

<meta content="трататамноготекста" itemprop="page_data"/>

We parse it and parse json.
Profit.

N
nokimaro, 2020-02-25
@nokimaro

For genius use their api
https://docs.genius.com/#/getting-started-h1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question