How to get picture URL in HTML code - LinkedIn

Hi,

I would like to get picture URL in this code :

URL I want : https://media.licdn.com/dms/image/C5603AQE9r8DQAwVAJA/profile-displayphoto-shrink_800_800/0?e=1541635200&v=beta&t=XnTRtLR1i4BxzEhvNM_CR1xjAhqNmjBfatJYu8BfPQE

HTML Code :

<div id="ember1508" class="presence-entity presence-entity--size-4 ember-view"><div id="ember1515" aria-label="Liliane Felrine" class="presence-entity__image EntityPhoto-circle-4 ember-view" style="background-image: url(&quot;https://media.licdn.com/dms/image/C5603AQE9r8DQAwVAJA/profile-displayphoto-shrink_800_800/0?e=1541635200&amp;v=beta&amp;t=XnTRtLR1i4BxzEhvNM_CR1xjAhqNmjBfatJYu8BfPQE&quot;);">  <span class="visually-hidden">Liliane Felrine</span>

Url: https://www.linkedin.com/search/results/people/?company=&facetGeoRegion=["fr%3A5227"]&firstName=&lastName=&origin=FACETED_SEARCH&page=1&school=&title=php

Sitemap

{"_id":"retrieve_picture_linkedin","startUrl":["https://www.linkedin.com/search/results/people/?company=&facetGeoRegion=["fr%3A5227"]&firstName=&lastName=&origin=FACETED_SEARCH&page=1&school=&title=php"],"selectors":[{"id":"profiles","type":"SelectorElement","parentSelectors":["_root"],"selector":"div.search-result__wrapper","multiple":true,"delay":0},{"id":"full_name","type":"SelectorText","parentSelectors":["profiles"],"selector":"span.name","multiple":false,"regex":"","delay":0},{"id":"linkedin_url","type":"SelectorLink","parentSelectors":["profiles"],"selector":"div.search-result__info a.search-result__result-link","multiple":false,"delay":0},{"id":"picture","type":"SelectorHTML","parentSelectors":["profiles"],"selector":"div.presence-entity__image","multiple":false,"regex":"","delay":0},{"id":"current_job","type":"SelectorText","parentSelectors":["profiles"],"selector":"p.search-result__snippets","multiple":false,"regex":"","delay":0},{"id":"current_location","type":"SelectorText","parentSelectors":["profiles"],"selector":"p.subline-level-2","multiple":false,"regex":"","delay":0}]}

Do you have any ideas to do this ?

Any suggestions ?:heart:

Try this on for size.

{"_id":"linkedin-pictures","startUrl":["https://www.linkedin.com/search/results/people/?company=&facetGeoRegion=%5B%22fr%3A5227%22%5D&firstName=&lastName=&origin=FACETED_SEARCH&school=&title=php"],"selectors":[{"id":"link","type":"SelectorLink","parentSelectors":["_root"],"selector":"div.search-result__image-wrapper a.search-result__result-link","multiple":true,"delay":0},{"id":"Picture","type":"SelectorElementClick","parentSelectors":["link"],"selector":"img.pv-member-photo-modal__image","multiple":false,"delay":0,"clickElementSelector":"div.pv-top-card-section__photo","clickType":"clickOnce","discardInitialElements":false,"clickElementUniquenessType":"uniqueText"},{"id":"Picture-link","type":"SelectorElementAttribute","parentSelectors":["Picture"],"selector":"_parent_","multiple":false,"extractAttribute":"src","delay":0}]}

This only does the first page as I didn't build in any Pagination. It's also slow as hell which seems to be a countermeasure from Linkedin.

How to scrape current company name and current title, what is code?