Is there any way scrape name, orcid and affiliation in same row?

Is there any way scrape name, orcid and affiliation in same row

Url: Reduced Stress among COVID-Symptomatic Undergraduates: Act With Awareness, Nonjudgment, and Nonreactivity as Key Facets of Mindfulness | Bentham Science

Sitemap:
{"_id":"69Benthamscience_Single_Article","startUrl":["https://www.benthamscience.com/article/140320","https://www.benthamscience.com/article/139210"],"selectors":[{"clickActionType":"real","clickElementSelector":"a.text-secondary","clickElementUniquenessType":"uniqueText","clickType":"clickOnce","delay":0,"discardInitialElements":"discard-when-click-element-exists","id":"Click","multiple":true,"parentSelectors":["_root"],"selector":"div.popover","type":"SelectorElementClick"},{"id":"Affiliation","multiple":false,"parentSelectors":["Click"],"regex":"","selector":"li:nth-of-type(1)","type":"SelectorText"},{"id":"aff2","multiple":false,"parentSelectors":["Click"],"regex":"","selector":"li:nth-of-type(2)","type":"SelectorText"},{"id":"name","multiple":true,"parentSelectors":["_root"],"regex":"","selector":"a.text-secondary","type":"SelectorText"},{"extractAttribute":"href","id":"orcid","multiple":true,"parentSelectors":["_root"],"selector":"a.green-orcid:nth-of-type(n+2)","type":"SelectorElementAttribute"}]}

Not really, since the elements are all at the same level in the HTML and cannot be grouped. You could do something like this:

{"_id":"69Benthamscience_Single_Article","startUrl":["https://www.benthamscience.com/article/140320","https://www.benthamscience.com/article/139210"],"selectors":[{"id":"author1","multiple":true,"parentSelectors":["_root"],"selector":"span.l-h-3","type":"SelectorElement"},{"id":"author1-name","multiple":false,"parentSelectors":["author1"],"regex":"","selector":"a:nth-of-type(1)","type":"SelectorText"},{"extractAttribute":"data-content","id":"author1-Affiliation","multiple":false,"parentSelectors":["author1"],"selector":"a:nth-of-type(1)","type":"SelectorElementAttribute"},{"extractAttribute":"href","id":"author1-OrcID","multiple":false,"parentSelectors":["author1"],"selector":"a:nth-of-type(2)","type":"SelectorElementAttribute"},{"id":"author2","multiple":true,"parentSelectors":["_root"],"selector":"span.l-h-3","type":"SelectorElement"},{"id":"author2-name","multiple":false,"parentSelectors":["author2"],"regex":"","selector":"a:nth-of-type(3)","type":"SelectorText"},{"extractAttribute":"data-content","id":"author2-Affiliation","multiple":false,"parentSelectors":["author2"],"selector":"a:nth-of-type(3)","type":"SelectorElementAttribute"},{"extractAttribute":"href","id":"author2-OrcID","multiple":false,"parentSelectors":["author2"],"selector":"a:nth-of-type(4)","type":"SelectorElementAttribute"}]}
1 Like

Got it . Thank you so much

1 Like