+ 1
Help me to print useful covid19 data from website using BeautifulSoup
I want to print state vise data of covid19 cases on my terminal screen so I made a program which scrap useful data from website and print it. like this : ' ' ' name of state : Maharashtra #(india) Active cases : xxxxxxxx Cured/discharge : xxxxxxxxx Deaths : xxxxxxx Total cases : xxxxx ' ' ' before some days my program was working fine but now it's not working their is no output. what is the problem? please help me to solve it.. I am stuck..! website from where I am fetching data : view-source : https://www.mohfw.gov.in my attempt : Edited : new code https://code.sololearn.com/cdEM3DJm64E6/?ref=app
10 Respuestas
+ 2
Find error at line 43, remove plus
+ 2
unwanted lines are removed from code check once Steve Sajeev bro
+ 2
I can't go more in. Bcs I am running the code in sololearn code playground
+ 2
Hi Ratnapal Shende the problem or argument happening here is bcs u are not willing to understand what others are trying to say.
+ 1
Kode Krasher see the new code I edited...
please look deep into my probelm
their is no class for tr or td and seems like it's hidden May be commented and their is a button in that site when we tap it then it is showing the tds data without reloading the page...
what to do now ?
I researched a lot but not found any solution for this...
please help me!
+ 1
Kode Krasher the big problem is what is wrong in my code ?
And i am running it in pydroid or pc so i have installed that modules ..don't worry about it !
+ 1
Lothar need your help sir ..i am stuck ...
+ 1
actually I don't know json sorry for that...
I will try to do my best..
THANK YOU SO MUCH FOR GIVING TIME SIR ! Kode Krasher
0
Kode Krasher
i have installed the modules perfectly bro why are you giving a code which install the modules? 🙄
and requests module is better than urllib because of easy API and high level..
I want to solve my problem without changing the modules..please kindly understand
0
Kode Krasher did you read previous chat ? I already said their is no table attribute ,their is no class id ....