a simple problem about going next page to do scraping

sonatine

Client
Регистрация
20.08.2014
Сообщения
206
Благодарностей
2
Баллы
18
hi, finally i got ZP5 and now i'm creating a template to extract blog addresses,for example this iranian blog provider :
http://www.blogfa.com/Members/UsersList.aspx?dir=05&page=1

now i have a simple problem, as you can see in my template ( i attached that ) it's a simple template, to extract addresses from all pages but i can't go to next page, before this, to extract google indexes or specific urls for certain keywords on google i was using that next button in search engines and they worked perfectly but here this dumb-ass blogfa doesn't have something similar and that --> icon doesn't work ( it just goes to page number 2 again and again) how can i add a function to go to next page ? please someone edit my template or explain simply.
 

Вложения

Tobbe

Client
Регистрация
01.08.2013
Сообщения
428
Благодарностей
148
Баллы
43
No need to click the next button. The url is very structured and you'd be fine working with just an increaser.

/UsersList.aspx?dir=15&page=2
/UsersList.aspx?dir=15&page=3
/UsersList.aspx?dir=15&page=4
See the pattern? Set a variable to 1 and increase it by one after each page load and go to /UsersList.aspx?dir=15&page={-variable.counter-}.
Also make sure you define when it hits the last page, so it doesn't go on forever.
I uploaded a similar template a while back, a bit more advanced as it also goes from a-z, 1-9. May be a bit overkill for this tho.
 

sonatine

Client
Регистрация
20.08.2014
Сообщения
206
Благодарностей
2
Баллы
18
mmmm i saw that template of yours but u know i'm kinda confused because i never used an increaser before, is it too time consuming for u to edit my own template ? so i can see in action what did u do ?
 

sonatine

Client
Регистрация
20.08.2014
Сообщения
206
Благодарностей
2
Баллы
18
i really appreciate if someone edit my template or say more specific what can i do, of couse Tobia hint was effective but i'm in hurry and it's for the first time i'm using variables in ZP5 and don't know what to do, i made a variable name count but i still don't know how to increase page numbers :(
i'm not dumb it's just in iran a few people know ZP and i always must have self study
 

Tobbe

Client
Регистрация
01.08.2013
Сообщения
428
Благодарностей
148
Баллы
43
@sonatine
First time using variables? You should read some guides then, or buy me a beer :D
 

Вложения

sonatine

Client
Регистрация
20.08.2014
Сообщения
206
Благодарностей
2
Баллы
18
if u were here i surely made u rich :D and buy u a drink, thanks for your help here is 10 pm and my wife is waiting for me to watch TV, i will report tomorrow and can't show my gratitude enough.
 
  • Спасибо
Реакции: Tobbe

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)