Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

210
Views
Requests-HTML - Page rendering of Java script not working

I'm trying to load the price history of Nestle through Requests-HTML. The script I'm using is:

import asyncio
import requests            
import requests_html

# Jupyter Notebooks related imports
import nest_asyncio        
nest_asyncio.apply()
from requests_html import AsyncHTMLSession
test_url= 'https://www.finanzen.ch/kurse/historisch/nestle/swx/1.1.2022_3.7.2022'
asession = AsyncHTMLSession()
rq = await asession.get(test_url)
rq.html.arender()
with open(Path ('HTML_Req_rendered.html'), 'wb') as f:
    test_txt= f.write(rq.html.raw_html)  

The file [HTML_Req_rendered.html](https://drive.google.com/file/d/1JWSxtM6RVR5I1VgIH-K6ZxQ66e1pbWKz/view?usp=sharing #GoogleDriveLink) is generated correctly but does not contain the price history loaded by javaScript. Please see the link top webpage.

Can anyone help? What am I doing wrong? How can I get a rendered HTML?

Any help is kindly appreciate. Thx. Stefano

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!