seregazhuk / php-pinterest-bot

This PHP library will help you to work with your Pinterest account without using any API account credentials.
MIT License
413 stars 129 forks source link

Please add "Following" section #402

Closed misterkek closed 6 years ago

misterkek commented 6 years ago

Site now by default shows the recommended pins on the main page. And then, what you signed, moved to another section: https://pinterest.com/following/

Do you plan to add to the library a function that allows you to receive only what you are subscribed to?

Thanks!

seregazhuk commented 6 years ago

Hi @misterkek I have been really busy these weeks. Actually, this URL returns pinners you follow and their recent pins. 2 pins for each pinner. If you want to receive what you are subscribed to, you can grab people you follow, and then take their pins.

misterkek commented 6 years ago

@seregazhuk

Actually, this URL returns pinners you follow and their recent pins.

Yes, this is what I want. I subscribe on Pinners' boards and I want to recieve recent pins in chronological order without recommended pins by Pinterest. I think https://pinterest.com/following/ is what I looking for. If you will add this URL as function to library, it will be sooo good!

seregazhuk commented 6 years ago

It is already implemented. Use this method.

misterkek commented 6 years ago

@seregazhuk

Method behaves like https://pinterest.com/following page: includes recent pins for these pinners.

Не совсем. То есть, конечно, можно получить последние Пины в "recent_pin_images" юзеров, на которых ты подписан, но это не то же самое, что показывается в https://pinterest.com/following, потому что я, например, подписан на Доски (в большинстве случаев на 1 доску у 1 пользователя), а не на все Пины из всех их Досок. В https://pinterest.com/following показываются последние Пины только из тех досок, на которые ты подписан, а в "recent_pin_images" подгружаются последние Пины из всех Досок. Вот так они замудрили :)

seregazhuk commented 6 years ago

Я в браузере больше никаких запросов, которые бы отдавали пины на странице following, не вижу. Единственный это https://www.pinterest.com/resource/UserFollowingResource/get, который используется в этом методе бота:

2018-07-30 13 48 48

Если есть какие-то предложения/замечания, буду благодарен 💪

seregazhuk commented 6 years ago

@misterkek закрываю?

misterkek commented 6 years ago

@seregazhuk Думаю, пока можно закрыть, хотя вопрос частично остается открытый. Я написал в поддержку Пинтереста, чтобы они пояснили, каким методом через их официальное API можно получить данные из этого раздела. Если ответят, то я сюда напишу, чтобы иметь хоть какое-то представление откуда берутся данные.

seregazhuk commented 6 years ago

Отлично, спасибо! Правда я не уверен, что они оценят, что мы дёргаем их официальное API 😆