+ 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

26th Nov 2020, 5:28 PM
Ratnapal Shende
Ratnapal Shende - avatar
10 Respuestas
+ 2
Find error at line 43, remove plus
26th Nov 2020, 5:37 PM
Steve Sajeev
Steve Sajeev - avatar
+ 2
unwanted lines are removed from code check once Steve Sajeev bro
26th Nov 2020, 5:40 PM
Ratnapal Shende
Ratnapal Shende - avatar
+ 2
I can't go more in. Bcs I am running the code in sololearn code playground
26th Nov 2020, 5:42 PM
Steve Sajeev
Steve Sajeev - avatar
+ 2
Hi Ratnapal Shende the problem or argument happening here is bcs u are not willing to understand what others are trying to say.
28th Nov 2020, 5:31 PM
Steve Sajeev
Steve Sajeev - avatar
+ 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!
26th Nov 2020, 7:09 PM
Ratnapal Shende
Ratnapal Shende - avatar
+ 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 !
27th Nov 2020, 4:32 PM
Ratnapal Shende
Ratnapal Shende - avatar
+ 1
Lothar need your help sir ..i am stuck ...
28th Nov 2020, 7:32 AM
Ratnapal Shende
Ratnapal Shende - avatar
+ 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
29th Nov 2020, 4:36 AM
Ratnapal Shende
Ratnapal Shende - avatar
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
27th Nov 2020, 10:58 AM
Ratnapal Shende
Ratnapal Shende - avatar
0
Kode Krasher did you read previous chat ? I already said their is no table attribute ,their is no class id ....
28th Nov 2020, 7:32 AM
Ratnapal Shende
Ratnapal Shende - avatar