Popup link on deliveroo

Hi,
i'm trying to scrape the content in the popup when you click on "info" here

Url: https://deliveroo.fr/en/menu/agen/agen-centre-ville/korean-street-agen
btw the address field is blank.
Also how can i scrape the phone?

Sitemap:
{"_id":"deliveroo","startUrl":["https://deliveroo.fr/en/menu/agen/agen-centre-ville/korean-street-agen"],"selectors":[{"delay":0,"id":"name","multiple":false,"parentSelectors":["_root"],"regex":"","selector":"h1","type":"SelectorText"},{"delay":0,"id":"cat","multiple":false,"parentSelectors":["_root"],"regex":"","selector":"p.ccl-6b45f37d4cb665b6:nth-of-type(1)","type":"SelectorText"},{"delay":0,"id":"popup","multiple":false,"parentSelectors":["_root"],"selector":".ccl-c334cd44f5e42880","type":"SelectorElement"},{"delay":0,"id":"address","multiple":false,"parentSelectors":["popup"],"regex":"","selector":"div:nth-of-type(2) span.ccl-417df52a76832172","type":"SelectorText"}]}

thanks!

@eldoland Hi, this data can be discovered after performing a click; phone number can be extracted using an 'element attribute' selector: a[class*="UIContentCard"]:contains("Call") with an attribute name - href

Example:

{"_id":"deliveroo","startUrl":["https://deliveroo.fr/en/menu/agen/agen-centre-ville/korean-street-agen"],"selectors":[{"clickElementSelector":"button:contains(\"Info\")","clickElementUniquenessType":"uniqueCSSSelector","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","id":"click","multiple":true,"parentSelectors":["_root"],"selector":"html","type":"SelectorElementClick"},{"delay":0,"id":"info","multiple":false,"parentSelectors":["_root"],"regex":"","selector":"div[class*=\"HeaderInfoRowModal\"] p:nth(0)","type":"SelectorText"},{"delay":0,"extractAttribute":"href","id":"phone","multiple":false,"parentSelectors":["_root"],"selector":"a[class*=\"UIContentCard\"]:contains(\"Call\")","type":"SelectorElementAttribute"}]}

Hope it helps.

thank you @ViestursWS it worked like charm! thanks a lot! :rocket:

Hi!
it looks like this sitemap is not working anymore

{"_id":"deliveroookuk","startUrl":["https://deliveroo.co.uk/menu/hamilton/hamilton/nandos-hamilton","https://deliveroo.co.uk/menu/hamilton/hamilton/co-op-co-op-hamilton"],"selectors":[{"id":"click","parentSelectors":["_root"],"type":"SelectorElementClick","clickElementSelector":"button:contains("Info")","clickElementUniquenessType":"uniqueCSSSelector","clickType":"clickOnce","delay":2000,"discardInitialElements":"do-not-discard","multiple":true,"selector":"html"},{"id":"info","parentSelectors":["_root"],"type":"SelectorText","selector":"div[class*="HeaderInfoRowModal"] p:nth(0)","multiple":false,"delay":0,"regex":""},{"id":"phone","parentSelectors":["_root"],"type":"SelectorElementAttribute","selector":"a[class*="UIContentCard-78fbbde2a0431123"]:contains("Call")","multiple":false,"delay":0,"extractAttribute":"href"},{"id":"address","parentSelectors":["_root"],"type":"SelectorText","selector":"div.UILines-0f1fb3361b059110:nth-of-type(2) span.ccl-417df52a76832172","multiple":false,"delay":0,"regex":""},{"id":"map","parentSelectors":["_root"],"type":"SelectorLink","selector":"a[class*="UIContentCard"]:contains("View map")","multiple":false,"delay":0}]}

the map and the phone are not scraped. I try to edit the class but no luck.
Any idea?
thanks!

@eldoland Hi, unfortunately, it appears like this data is no longer accessible in the source code.

Could, you, please provide a 'phone' and 'map' example?