R
R
Ruslan2020-12-04 21:08:27
Python
Ruslan, 2020-12-04 21:08:27

How to parse loadable content using python?

Is there a site that literally has code that starts with
how to parse it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Gilfanov, 2020-12-04
@ruprup

With Selenium.
Installation is done like this:
pip install selenium
Scant documentation is available at the link .
There is also a series of articles on Habré "Selenium for Python" from 2015:

  • Chapter 1 Installation
  • Chapter 2
  • Chapter 3 Navigation
  • Chapter 4 Finding Items
  • Chapter 5
  • Chapter 6 Page Objects

Further myself.

W
Web Dentist, 2020-12-04
@kgb_zor

pip install requests-html

from requests_html import HTMLSession

session = HTMLSession()
url = 'https://toster.ru'
r = session.get(url)
r.html.render()

Source
Library Repository

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question