Im tring to create a URL Scraper in PHP for Google SERP. Since im using Xpath there seem to be a problem.
When i try it is evaluated in xpather it shows the result
it works pretty good and shows all the links that is available in the site which i dont need.
but When i try the below code in xpather re result is shown
but when i enter the xpath in the php evaluate , nothing is shown..
Can some one please help me to get the proper xpath for the Google search results ??
When i try it is evaluated in xpather it shows the result
Code:
/html/body//a
it works pretty good and shows all the links that is available in the site which i dont need.
but When i try the below code in xpather re result is shown
Code:
/html/body/div[@id='cnt']/div[@id='res']/div/ol/li/div//cite
Can some one please help me to get the proper xpath for the Google search results ??