I would like to scrape linkedin for a personal only use (need to get post of a friend company page) and I'm using Selenium and BeautifulSoup for this matter.
I found that each post is a div and they all have ember-view class but sponsored posts also have this class which I don't want to scrape, more digging in the HTML code, I found that I could select user posts by selecting all div that have the value: urn:li:activity:XXXXXXXXXX for the data-urn attribute.
However in each post div, XXXXXXX is a different number, how can I select all div with data-urn=urn:li:activity:XXXXXXXXX given that XXXXXXXX is a changing number in each div ?