Yes… So you need to pass a parameter instead of the “*” in the selector right? You can actually do that using a variable.
So have a variable in type int32 first and assign it to 1 as the page numbers starts from 1. Then, in your selector, have the counter variable added to that location as "href='https://www.n11.com/arma/q=pil&pg='" + Counter.ToString + "'"
However, If you are using the data scraping wizard, just make sure you scrape one page at a time. So in first iteration, scrape the first page data. Then increment the counter variable. Then scrape the next page like wise…
Hi @Pablito and @Lahiru.Fernando
Thank you for your responses. I have a similar idea. But the main problem is that, when should I take this incremental? My sequence is below
Please correct me if I mistakes but I think this scraping automatically done in “Extract Structured Data” block. So I can’t put in “Assign” block for counter = counter +1 inside the “Extract Structured Data” block.
Instead of that should I create url dynamically and load this url and scraping this url for every page? In this scenerio first I should learn the page count in site for avoiding 404 not found error.
@bk52,
You can put Extract Data and Write CSV inside While loop. Declare variable with Assign activity like “Variable = 1”. Then inside the loop after all activities put again Assign activity with: “Variable = Variable +1”