I have looked up other questions which have kind of a similar issue but none of them are working for me. I am working on Python 3.
I have been trying to get the contact info and Email Id of a college through this website: https://www.collegesearch.in/colleges/dronacharya-group-of-institutions-greater-noida/contact#contactDiv
This site allows you to extract these details only after you login. Without logging into the website, it just displays text: 'View Contact No.', 'View Email'. I logged into the website through Python but it is still giving me the these texts instead of displaying the Contact No. and the Email ID.
Here is my code:
import requests params = {'student_email':'[email protected]', student_password':'############'} r = requests.post('https://www.collegesearch.in/student-login#/processing.php', params) s = r.cookies.get_dict() r = requests.get('https://www.collegesearch.in/colleges/dronacharya-group-of-institutions-greater-noida/contact#contactDiv/processing.php', cookies = s) print(r.text)