0
Not a bug
smi 4 weeks ago in Portia • updated 3 weeks ago 2

Hi!


I'm using portia to get data from a list of search results (businesses).


In that list are lnadline numbers, mobile numbers and so on.


Using .result-container > .row > .col2 > .icon-mobile > a it should return all numbers that have a mobile icon in front of it (when searching for mobile numbers) and in the GUI it works as it should.

But when the crawler runs and finds an item in the list that does not contain a mobile number, it picks the ones from all others on the page.


How can I prevent that?


Thanks! 

Answer

Answer
Not a bug

Hey smi, 


Try to play a bit with CSS selector or XPath selector to fetch that information:


 

Once you make the anotation to extract items, you just click on the wheel near the type of anotation, to config this. 


I hope this information helps.


Best regards,


Pablo Vaz

Answer
Not a bug

Hey smi, 


Try to play a bit with CSS selector or XPath selector to fetch that information:


 

Once you make the anotation to extract items, you just click on the wheel near the type of anotation, to config this. 


I hope this information helps.


Best regards,


Pablo Vaz

Hi Pablo!

Thanks for your feedback!

I'm already using css selectors and it shows it correct in the preview.

It only fails when running a crawl.


Regards