-
Hiya, I'm following the instructions on https://github.com/tmrowco/electricitymap-contrib/wiki/Set-up-local-environment I have installed poetry, verified by:
Now I get stuck at
I searched online, says I need to first do a poetry init:
And then I try to install the parsers again:
I'm stuck here. Python is version 3.7. I tried with 3.9 too. Please guide me. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
👋 You need to be in the the electricitymap-contrib repository when running the poetry install command. |
Beta Was this translation helpful? Give feedback.
-
Hi Kenneth
Thanks for your reply. Analysing the code it seems that the original site
before it was changed outputted the figures in table format (<td></td>) and
now it has changed to dynamically loaded by ajax. Analysing the new page,
I've tried to access the JSON objects directly with their ajax call, but
it's blocked by CORS.
"Access to XMLHttpRequest at '
https://www.gso.org.my/SystemData/CurrentGen.aspx/GetChartDataSource' from
origin 'null' has been blocked by CORS policy: Response to preflight
request doesn't pass access control check: Redirect is not allowed for a
preflight request."
Do you guys have any experience on how to scrape a dynamically loaded page?
Perhaps I could learn a thing or two while helping you out with this.
Cheers
…On Thu, 19 Aug 2021 at 02:41, Kenneth Skovhus ***@***.***> wrote:
👋
You need to be in the the electricitymap-contrib repository when running
the poetry install command.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3320 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABUOSAF3D6FYYCROU7QGVPTT5P5FNANCNFSM5CMPZCPQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Beta Was this translation helpful? Give feedback.
👋
You need to be in the the electricitymap-contrib repository when running the poetry install command.