Jump to content

[Solved] Python module Quart, Selenium Python 3.10, Tommy2


gtom1984

Recommended Posts

Hello Support,

I asked yesterday for selenium or requests_html but unfortunately there is no way to get requests_html with Javascript render working with Flask without async support. Selenium works just fine. I was testing plain scripts not in cooperation with Flask so both seemed equal to me on the first look. I'm sorry for bothering you again.

pip install quart
pip install selenium

 

This is for Tommy2 and Python 3.10.

Thank you.

Tomas

Link to comment
Share on other sites

Just one more thing to requests_html module.

Using render() function throws

[Sun Jan 08 18:21:58.636065 2023] [wsgi:error] [pid 3014:tid 139730486245120] [client 2a00:ca8:a16:a8eb:d507:724e:a27d:cc63:34938] PermissionError: [Errno 13] Permission denied: '/usr/share/httpd/.local'

Is this limitation of shared hosting? It works fine on my local env.

I'm also not sure if selenium will work as it requires access to browser (headless mode supported). 

Quart overcomes async issues in Flask and works well with requests_html module.

Link to comment
Share on other sites

  • gtom1984 changed the title to Python module Quart, Selenium Python 3.10, Tommy2
4 hours ago, gtom1984 said:

I'm also not sure if selenium will work as it requires access to browser (headless mode supported).

We're not going to install a headless web browser on shared hosting. You'll need a VPS for that.

Link to comment
Share on other sites

  • Krydos locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...