Automate Naukri.com from Excel VBA.

kashif.special2005

Active Member
Joined
Oct 26, 2009
Messages
443
Hi,

I am trying to learn, that how can we automate internet explorer from excel vba, I am trying to automate Naukri.com from vba, and wrote some code to automate that, I achieved some part of the task, with below code.

Code:
Sub Naukri_Manipulation()
  
  Dim ie As InternetExplorer
  Dim HTMLDoc As MSHTML.HTMLDocument
  Dim elements As MSHTML.IHTMLElementCollection
  Dim element As MSHTML.IHTMLElement
    
  Set ie = New InternetExplorer
  
  ie.navigate "www.naukri.com"
  ie.Visible = True
  ie.Silent = False
  
  Do While ie.readyState <> READYSTATE_COMPLETE
    DoEvents
  Loop
  
  Set HTMLDoc = ie.document
  
  HTMLDoc.getElementsByName("qp").Item(0).Value = "VBA Developer"
  HTMLDoc.getElementsByName("ql").Item(0).Value = "Delhi Ncr"
  HTMLDoc.getElementById("exp_ddHid").Value = 3
  HTMLDoc.getElementById("salary_ddHid").Value = 4
  HTMLDoc.getElementById("qsbFormBtn").Click
  
  Do While ie.readyState <> READYSTATE_COMPLETE
    DoEvents
  Loop
  
'  For Each element In HTMLDoc.getElementsByClassName("content")
'    Debug.Print element.getAttribute("href")
'  Next element
  
End Sub

This code working fine, for input the value in the search boxes and click on "Search" button, after that I got lost, that how can we click each job details and grab the details.

Parameters

Skills, designation, companies:= VBA Developer
Location:= Delhi Ncr
Experience:= 3
Salary:= 4

Like if you pass parameter and click on "Search" button, the result will show, and after click on 1st link for output results, the below details need to grab.

Job Title:= Senior VBA Developer - MS Access

Company Name:=Oscillate Infotech Pvt. Ltd.
Experience:= 3-5 yrs
Location:= Noida
Job Description:=

  • 3-5 years of experience with MS Access
  • Experience with forms, reports, queries, modules, macro\'s, VBA
  • Experience and high degree of confidence in general database theory and structure
  • Experience with multiple versions of Access
  • Experience with Excel and Excel VBA macro\'s
  • Highly intelligent with ability to adapt and change
Desired Candidate Profile:=
Education-
UG: B.Tech/B.E.
PG:Post Graduation Not Required

Doctorate:Any Doctorate - Any Specialization, Doctorate Not Required

etc.,

Note:- Above type of information required for each searched output results.

Please help me to do this task.

Thanks
Kashif

 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,215,194
Messages
6,123,569
Members
449,108
Latest member
rache47

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top