Couple of pinterest related questions

Harambulus

Client
Регистрация
16.09.2011
Сообщения
365
Благодарностей
10
Баллы
18
One question: Pinterest only shows results on one big page and you have to scroll down and down and down just like on google images. I want to scrape a list of ALL my followers using regex but now I have a few thousand its tkaing ages to scroll down manually. How could I do it with zenno?

Antoher thing: I want to unfollow people. I was having a really hard time making zenno see whether the button is on follow or unfollow. I tried using aciton builder to look for different criteria such as outer text and outerhtml etc. but each time it didnt see if it was on follow or unfollow. It would always be pressing the button.

It would make the unfollow bot way simpler if I could find a way for zenno to just recognise if the button is follow or unfollow. Because at the moment I have to save every username I follow then do a check against another list of people who are following me and if they arent on that list only then click.

So can anyone figure out how to make zenno recognise whehter the button is on follow or unfollow so it will only click when I am not following someone. Also the other issue mentioned above.

Cheers.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113

Tobbe

Client
Регистрация
01.08.2013
Сообщения
428
Благодарностей
148
Баллы
43
1) Use Keystrokes Emulation and input several "{PGDN}", which emulates your Page Down -key.
2) Here's what the attributes looks like, they might not be what you're looking for, but there sure is a difference of follow/unfollow:

Follow button class: UserFollowButton btn rounded Button hasText primary Module ajax notNavigatable ui-FollowButton
Follow button innertext: Follow

Unfollow button class: UserFollowButton btn rounded Button hasText Module ajax notNavigatable ui-FollowButton dim
Unfollow button innertext: Unfollow

Edit; yeah, you should use the mobile version. I'm not really familiar with Pinterest.
 

Harambulus

Client
Регистрация
16.09.2011
Сообщения
365
Благодарностей
10
Баллы
18
Yes there are cerrtainly differences in the texts i know that much. but when i tried to search zenno would ingore it and always click no matter what for some reaosn.

Let me read that thread and see what it has to say :-)
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Yes there are cerrtainly differences in the texts i know that much. but when i tried to search zenno would ingore it and always click no matter what for some reaosn.

Let me read that thread and see what it has to say :-)

For some reason you did something wrong, dig deeper and you will find, try my offered way with innerhtml and outerhtml
 

Harambulus

Client
Регистрация
16.09.2011
Сообщения
365
Благодарностей
10
Баллы
18
What is the reaosn for needing to use mobile version?
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
If you read this thread then you understand that there is limits for DOM, as you scroll down size of DOM increase, everything in one page in short, mobile versions tend to display data in page after page...
 

Harambulus

Client
Регистрация
16.09.2011
Сообщения
365
Благодарностей
10
Баллы
18
Oh right cool, cos I really hate that infinite scroll junk- makes things alot messier/slower when programming bots! :P was busy yesterday but I work thru and try and figure it out today.
 

Harambulus

Client
Регистрация
16.09.2011
Сообщения
365
Благодарностей
10
Баллы
18
By using mobile version do you guys mean on the site or in zenno profile? I just set mobile to 100% in the profile of zenno and didnt seem to make a difference to the scroll.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
By using mobile version do you guys mean on the site or in zenno profile? I just set mobile to 100% in the profile of zenno and didnt seem to make a difference to the scroll.

I did not said t will make diff for pinterest, I said you can try, i know that there is diff for twitter...

Mobile version you can get by setting Mobile useragent and using pinterest
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Yep just checked pinterest is same in mobile as in browser. But anyway you can use mobile version as this will reduce DOM size...
 

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
I always check the differences of a site using both normal & mobile browser, and then choose which is easier to work with.

I had the same with scraping Fiverr, and needed to know when I reached the end. What I did was compare body height before/after scrolling (I think same as the Twitter solution provided).
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
1) Use Keystrokes Emulation and input several "{PGDN}", which emulates your Page Down -key.
Page down wont get you far in cases like this one since there is a lot of scrolling down going on. :D

what you need to use is {HOME}{END} in keystrokes emulation. This will take you all the way down and will get reload active in one move. ;-)
 

Astraport

Client
Регистрация
01.05.2015
Сообщения
4 983
Благодарностей
4 434
Баллы
113
What is the link to the mobile version of the Pinterest website? I can not find.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113

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