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

151
Views
AttributeError: 'HTMLSession' object has no attribute 'html'

Hello I am getting into requests_html and trying to render Javascript though it does not seem to process correctly. Very simple script, I added a sleep to see if it would render though still the same issue, here is the code.

from requests_html import HTMLSession

requests = HTMLSession()

requests.get('https://google.com')
requests.html.render(sleep=2)
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I don't think that's how it works, I can only get it it work when I save the response to a varaible:

from requests_html import HTMLSession

requests = HTMLSession()

resp = requests.get('https://www.google.com')
resp.html.render(sleep=2)

print(resp.text)
about 4 years ago · Juan Pablo Isaza Report
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!