Web scrape using "itemprop" inside a span tag


#1

Hi all,

I was just wondering if it would be possible to use “itemprop” in a span tag selector to make it more accurate?

I was looking at scraping a website where I was having difficulty adjusting the selectors. I noticed within the websites span tags they used itemprop to uniquely specify each piece of information I was after. e.g. <span itemprop=title>Mr</span>

Thanks


#2

Any sample url. and which field you want to scrape.


#3

an example can be found under the summary section on this page https://www.encyclopedia-titanica.org/titanic-victim/james-bracken.html. I was trying to scrape the details of each passenger page to compare against the overall passenger list found here https://www.encyclopedia-titanica.org/titanic-passenger-list/.


#4

ok got it .

May know where exactly your facing trouble .


#5

I would like to know how to specify the itemprop value in my selector to accurately scrape that data across all passenger pages.