[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 AMMask Man(What's in a name?)
37 AnswersNew Answer
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 🙂🙂😊😊
bs4 not installed sololearn not offers some library support you need to install it first
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.
MEGH You Can Try On Terminal
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.
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
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 )
Prashanth Kumar Vats [DEV] You Both Are Correct 🤟 Everything Is Fine, Thank You Very Much
Prashanth Kumar 😶 Class 10 students need D.O.B also
براء المدهون 🤨why are you spamming 😑
Mask Man(What's in a Name?) you're welcome
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??
Anurag Saikia better try inspecting with chrome/firefox dev tools from chrome..
Vats [DEV] question Updated now see
Mask Man(What's in a Name?) Means you want to scrape with a definite identify.
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/
Prince Gupta Can You Try To Complete This Project If You Have time?
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.
https://code.sololearn.com/cSOHRwqYBT0r/?ref=app is this ok?
Vats [DEV] 10th ke liye kya kare