Web Scraper Element Click Selector on a image with coordinates

794 views
Skip to first unread message

Gitu Digal

unread,
Mar 28, 2016, 11:37:46 PM3/28/16
to Web Scraper

Hi there,
I am trying to scrape data from a website using Web Scraper. 
My problem is there is a image with mapped areas using coordinates. There are 8 mapped areas on the image and each mapped area shows a unique list of links loaded by AJAX.And when you click on each item on a list, it opens up a detail page from where we need to scrape the information. 

I tried using Web Scraper Element Click Selector to click the mapped areas but i can't get it to work. 

My problems are, if I tell Web Scaper that the map is the parent selector, it won't let me select the links on the right for it to follow. But if I tell it the area on the right is the selector, I can't select the mapped areas as the "click selector". 

How do I get Web Scraper to click on all mapped areas on the image and loop and click on each link in the list and go to the detail page and extract the data. 

Here is the URL i'm trying to get the information from: http://www.beautynz.org.nz/clinics/search-clinic/


Thanks for your help. 

Regards,
Gitu. 

Mārtiņš Balodis

unread,
Mar 29, 2016, 11:12:28 AM3/29/16
to Gitu Digal, Web Scraper
Hi,
You can use element click selector to click on the map and extract data from elements that appear after clicking. Here is an example of the element click selector:

{"_id":"beautynz-map","startUrl":"http://www.beautynz.org.nz/clinics/search-clinic/","selectors":[{"parentSelectors":["_root"],"type":"SelectorElementClick","multiple":true,"id":"click-map","selector":"div.locationMapPaneldisplay:nth-of-type(2)","clickElementSelector":"area.btmap","clickElementUniquenessType":"uniqueCSSSelector","clickType":"clickOnce","discardInitialElements":true,"delay":"4000"},{"parentSelectors":["click-map"],"type":"SelectorText","multiple":true,"id":"list-item","selector":"li","regex":"","delay":""}]}

--
You received this message because you are subscribed to the Google Groups "Web Scraper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web-scraper...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages