Hello,
I scrape the Johns Hopkins University's COVID-19 Map in a local environment using python and selenium to get the number of the cases by country and so on.
However, when I tried to do the same thing in aws Lambda, it failed.
The problem is that I can't get the value I want to get; when I try to get the html of covid-map, there is almost nothing inside the
tag. ( I will note it at the end).
Firstly, I thought that is because that the serverless-chrome in my aws doesn't support webGL. However, I read the issue(https://github.com/adieuadieu/serverless-chrome/issues/108) and enabled webGL, the problem still occurs. (I checked whether the browser supports webGL on this website.
As far as I can think of, the difference between the local environment and Lambda is whether using a regular Chrome or serverless-chrome browser.
Could anyone help to resolve this please?
This is the body element which serverless-chrome got.
Hello, I scrape the Johns Hopkins University's COVID-19 Map in a local environment using python and selenium to get the number of the cases by country and so on. However, when I tried to do the same thing in aws Lambda, it failed. The problem is that I can't get the value I want to get; when I try to get the html of covid-map, there is almost nothing inside the
tag. ( I will note it at the end). Firstly, I thought that is because that the serverless-chrome in my aws doesn't support webGL. However, I read the issue(https://github.com/adieuadieu/serverless-chrome/issues/108) and enabled webGL, the problem still occurs. (I checked whether the browser supports webGL on this website. As far as I can think of, the difference between the local environment and Lambda is whether using a regular Chrome or serverless-chrome browser. Could anyone help to resolve this please?This is the body element which serverless-chrome got.
This is the code on Lambda.