[Solved :-) ] Web Scrapping Not Working | Sololearn: Learn to code for FREE!

+18

[Solved :-) ] Web Scrapping Not Working

I am trying to scrap data from https://cbseitms.in/cbse/2021/rfinder/RollDetails.aspx to make my new project, and i am trying like this https://code.sololearn.com/cDMnc9NCFgXQ/?ref=app ***Try This On Terminal and install Modules to test this*** and but it not working as expected ☹️ What I Am Expecting: i want to send post request to this website and want to fetch roll number like this https://www.sololearn.com/post/1216909/?ref=app if this is wrong way then can you please send correct code? Can You Please Note: I am just scrapping for learning purpose

8/1/2021 7:45:03 AM

Mask Man(What's in a name?)

37 Answers

New Answer

+2

Thank you Prashanth Kumar, The code that I have make is same but last line is different 😅😅😅 https://code.sololearn.com/cUFotdvR1g70/?ref=app Mask Man(What's in a Name?) Edit:Now this is also working 🙂🙂😊😊

+9

bs4 not installed sololearn not offers some library support you need to install it first

+7

Mask Man(What's in a Name?) Try seeing this helpful educational websites. https://linuxhint.com/logging_into_websites_python/ https://www.w3schools.com/python/module_requests.asp https://realpython.com/python-requests/ https://www.geeksforgeeks.org/python-requests-tutorial/ See, you have to know the content of the website page before logging and after logging and keep track of the html elements which contain the information you want to retrieve or where you want to provide information to get some data. I hope it will be helpful for you.

+6

MEGH You Can Try On Terminal

+6

Mask Man(What's in a Name?) I, actually, have not used or tried this modules of Web Scraping. I just found out educational articles related to your query which will help you in figuring out your own solution.

+5

Vats [DEV] Ya, I want to create a website/api in which you have to give input name, school code, father name, mother name and that will return Your roll number

+5

Mask Man(What's in a Name?) see line 47 and also 22 to 25 ( the token was wrong i got it by inspecting with firefox dev tool )

+5

Prashanth Kumar Vats [DEV] You Both Are Correct 🤟 Everything Is Fine, Thank You Very Much

+5

Prashanth Kumar 😶 Class 10 students need D.O.B also

+4

براء المدهون 🤨why are you spamming 😑

+4

Mask Man(What's in a Name?) you're welcome

+4

Mask Man(What's in a Name?) Vats [DEV] Prashanth Kumar bros agar student name and parents name and school code change kare to output hoga na??

+4

Anurag Saikia better try inspecting with chrome/firefox dev tools from chrome..

+3

Vats [DEV] question Updated now see

+3

Mask Man(What's in a Name?) Means you want to scrape with a definite identify.

+3

Mask Man(What's in a Name?) Then I hope, it will be helpful for you - https://www.edureka.co/blog/web-scraping-with-python/

+3

Prince Gupta Can You Try To Complete This Project If You Have time?

+3

Harsh Shrivastava Nothing is easy. It depends upon your mind set. And if you want to ask question then please use discussion forum. Don't ask questions in another question.

+3

https://code.sololearn.com/cSOHRwqYBT0r/?ref=app is this ok?

+3

Vats [DEV] 10th ke liye kya kare