Why, when I do web scraping on the FB marketplace, does it always returns 0 rows?

I have tried scraping some data from FB Marketplace. The web scraping tool detects the data, but when I run the robot, it always returns 0 in its total rows, and I don’t know why.

These pics show that UiPath is “working”:

But as I said, when I ran it, it doesn’t work. Any idea? Thanks.

Also, I attached the project:
iPhoneFBCalculator.zip (17.2 KB)

You need to change the credentials for your private ones to run it.

@fanmixco
give a try on changing the variables scope to a higher level

e.g to sequence

1 Like

Hi @ppr, the result is exactly the same 0. Nothing changed. Thanks for the idea.

@fanmixco
Then with a debug Run the empty result can be confirmed and in a next step the the selectors for the extractdata and the Data extract config XML IS to verifiy If IT IS Not failing e.g by selectors with specific, Run related Infos.
Does mean: the selectors are to make more General and reliable

Perfect, can you help me analyze how to generalize the selectors more? This is the auto-generated code by UiPath Studio using its Table Extraction feature:

<extract>
	<row exact="1">
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="3"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="2"/>
		<webctrl tag="div"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="span" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="a" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="2"/>
	</row>
	<column exact="1" name="Nombre" attr="text">
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="3"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="2"/>
		<webctrl tag="div"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="span" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="a" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="2"/>
		<webctrl tag="div" idx="2"/>
		<webctrl tag="span" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="span" idx="1"/>
		<webctrl tag="span" idx="1"/>
	</column>
	<column exact="1" name="Precio" attr="text">
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="3"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="2"/>
		<webctrl tag="div"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="span" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="a" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="2"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="span" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="div" idx="1"/>
		<webctrl tag="span" idx="1"/>
	</column>
</extract>

Thanks.