i am working on a code which is extracting data from web pages
# first is task.py
import requests
from bs4 import BeautifulSoup
url = ('https://www.naukri.com/job-listings-Python-Developer-Cloud-Analogy-Softech-Pvt-Ltd-Noida-Sector-63-Noida-1-to-2-years-250718003152?src=rcntSrchWithoutCount&sid=15327965116011&xp=1&px=1&qp=python%20developer&srcP
ge=s')
response = requests.get(url)
page = response.text
soup = BeautifulSoup(page, 'html.parser')
links = soup.find_all("div", {"id":"viewContact"})
for link in links:
print(link.text)
I want to retrieve the contact detail this page. which is in the bottom of the page "View Contact Details" the web page contains:
<div class="jDisc viewContact" id="viewContact" style="display: block;"><p>
<em>Recruiter Name:</em><span>Malika Pathak, Himani Adhikari</span></p><p>
<em>Contact Company:</em><span>Cloud Analogy Softech Pvt Ltd</span></p><p>
<em>Address:</em><span>H-77, H Block, Sector 63, Noida, UP-201307NOIDA,Uttar
Pradesh,India 201307</span></p><p><em>Email Address:</em><span><img
title="himani.adhikari@cloudanalogy.com , malika.pathak@cloudanalogy.com"
src="data:image/jpeg;base64,"></span></p><p><em>Website:</em><a
target="_blank"
rel="nofollow" href="http://cloudanalogy.com/">http://cloudanalogy.com/</a>
</p>
<p><em>Telephone:</em><span>9319155392</span></p></div>
I get nothing in the result