import requests 
from bs4 import BeautifulSoup 
from selenium import webdriver 
from selenium.webdriver.common.keys import Keys 
import time 

#url of the page we want to scrape 
url = "https://www.naukri.com/top-jobs-by-designations# desigtop600"

driver = webdriver.Firefox()
driver.get(url)
time.sleep(5) 
html = driver.page_source 

soup = BeautifulSoup(html, "html.parser") 
all_divs = soup.find('div', {'id' : 'nameSearch'}) 
job_profiles = all_divs.find_all('a') 

count = 0
for job_profile in job_profiles : 
	print(job_profile.text) 
	count = count + 1
	if(count == 10) : 
		break

driver.close() # closing the webdriver 
