Unable to select contact every time

In this profile contact option is on different places. I need span contact every time and need to collect only email and phone number .

Url: Staff Profile | Faculty of Medical Science

Sitemap:
{"_id":"UNN","startUrl":["https://medicine.unn.edu.ng/116-2/"],"selectors":[{"id":"PRO","parentSelectors":["_root"],"type":"SelectorLink","selector":".entry-title a","multiple":true,"linkType":"linkFromHref"},{"id":"NAME","parentSelectors":["PRO"],"type":"SelectorText","selector":".entry-meta h5","multiple":false,"regex":""},{"id":"DEP","parentSelectors":["PRO"],"type":"SelectorText","selector":".entry-meta div.doctor-departments","multiple":false,"regex":""},{"id":"CLICK7","parentSelectors":["PRO"],"type":"SelectorElementClick","clickActionType":"real","clickElementSelector":"div:nth-of-type(7) h3","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":2000,"discardInitialElements":"discard-when-click-element-exists","multiple":true,"selector":".current div.accordion-content"},{"id":"MAIL","parentSelectors":["CLICK7"],"type":"SelectorText","selector":"p","multiple":false,"regex":""},{"id":"CLICK6","parentSelectors":["PRO"],"type":"SelectorElementClick","clickActionType":"real","clickElementSelector":"div:nth-of-type(6) h3","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","multiple":true,"selector":".current div.accordion-content"},{"id":"MAILA","parentSelectors":["CLICK6"],"type":"SelectorText","selector":"parent","multiple":false,"regex":""}]}

@don2010 can you please help me to figure out this

{"_id":"UNN","startUrl":["https://medicine.unn.edu.ng/116-2/"],"selectors":[{"id":"PRO","linkType":"linkFromHref","multiple":true,"parentSelectors":["_root"],"selector":".entry-title a","type":"SelectorLink"},{"id":"NAME","multiple":false,"parentSelectors":["PRO"],"regex":"","selector":".entry-meta h5","type":"SelectorText"},{"id":"DEP","multiple":false,"parentSelectors":["PRO"],"regex":"","selector":".entry-meta div.doctor-departments","type":"SelectorText"},{"id":"email","multiple":false,"parentSelectors":["PRO"],"regex":"","selector":".accordion-title:contains(\"Contact\") + div","type":"SelectorText"}]}

you don't need to make clicks.... just looking for "Contact" section... that's it...

1 Like

what is the process to develop or write a code for this targeted section?

this part
image

just inspect a source code in develorer's mode, and find the proper selectors for your target words...... that's it...

why you adding [ + div ] is there any formula or rules

+ div means I select the followin div after I found "Contact" section...

1 Like

is there is any formula or rules for using web scraper. where I can get type of formula

I can't teach, sorry. Just review this forum, there are many examples of using selectors.
Also, you can review this article:

https://www.w3schools.com/cssref/css_selectors.php
1 Like

okay this was very helpful