izen
izen

Reputation: 125

Python 3 + Javascript

I downloaded one html-page. I need to parse one string form page, but it's behind javascripts. When i run this page in browser - all looks pretty, but in html-code i see something like this:

<script type="text/javascript">function deobfuscate_html(){s007=null;s7125=6 ... #long long string

How can I unpack this? I want to see the pretty raw, like in browser.

Upvotes: 0

Views: 593

Answers (1)

Steve Mayne
Steve Mayne

Reputation: 22808

I would run the page in a web browser using Selenium (triggered and controlled in Python) - you can then gain access to the fully rendered page.

The chosen answer here will show you how to get the html from a rendered page.

Upvotes: 1

Related Questions