resj01
(Resj01)
March 23, 2021, 2:51pm
1
Hello,
I’m trying to scrape data on this website . When i create NextLinkSelector automatically with Data Scraping it go only to page 2, because it has some exact link to page 2, but not dynamic link to next page.
Could someone help me please?
Thank you!
Hiba_B
(Hiba Beldi)
March 23, 2021, 3:17pm
2
Hi @resj01
Welcome to UiPath Community !
For NextLinkSelector, did you indicate the following button ? (in the red rectangle)
ppr
(Peter Preuss)
March 23, 2021, 3:19pm
4
@resj01
the selector is hardcoding =2 when e.g indicating next selector while configuring the Datascrapper
Just generalize it afterwards e.g. like:
<webctrl href='/hledani/prodej/byty?strana=*' isleaf='1' tag='A' idx='2' />
4 Likes
resj01
(Resj01)
March 23, 2021, 3:28pm
5
It works! Thank you very much, I was trying some kind of generalization, bud my attempts didn’t work.
resj01
(Resj01)
March 23, 2021, 3:44pm
6
Unfortunately another problem apeared. Now it srapes 45 pages, when there is 500+ pages available. I have MaxNumberOfResults set to ‘0’, so it should scrape all results. Any idea what is wrong now? Sorry for another disturbing.
ppr
(Peter Preuss)
March 23, 2021, 4:04pm
7
@resj01
the selector shows not any hints why it is blocking. just page forward to page 44 and test if the scrapper is paging over page 45
Adrian_Star
(Adrian Starukiewicz)
March 23, 2021, 8:43pm
8
Hi,
You can use the reading method in While / Do while loop instead Data Extraction.
While
Condition: NextSite_Exists As Bool = True
Then:
Append scraped data
Check if Next Site Element Exist
Sample:
1 Like
system
(system)
Closed
March 26, 2021, 8:43pm
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.