gtom1984 Posted January 8, 2023 Posted January 8, 2023 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
OnEnemy Posted January 8, 2023 Posted January 8, 2023 This support request is being escalated to our root admins.
gtom1984 Posted January 8, 2023 Author Posted January 8, 2023 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.
Krydos Posted January 8, 2023 Posted January 8, 2023 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.
Recommended Posts