Answer the question
In order to leave comments, you need to log in
How to parse via requests/bs4, a site generated via JS?
Good afternoon.
I wanted to parse the site using requests/bs4. But the site is generated in JS, and the results of parsing through requests / bs4, does not give out :( (although Content-Type: text/html).
If I parse through selenium, then everything is OK, I get the necessary information.
Actually, the question is, can sites on js , parse through requests/bs4 and not through selenium?If so, how?
Answer the question
In order to leave comments, you need to log in
No, you can't, because requests simply gets the content of the page (without executing js, of course), and bs4 parses the html. Selenium can only be replaced by PhantomJS.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question