php-pinterest-bot icon indicating copy to clipboard operation
php-pinterest-bot copied to clipboard

API changed on Pinner Search!

Open kaankilic opened this issue 5 years ago • 10 comments

Hey guys,

Today, I noticed that Pinterest has some changes on their API. When I am trying to search pinner on pinterest I was get the error below: [ [ "messages" => [ "Sorry! Our search is a little overwhelmed right now. Please try again later. You can <a href='/categories'>explore Pinterest by category</a>.", ], "theme" => "default", ], false, [], false, ] When I follow the footprints of pinterest endpoints, I discovered that they changed the searchScope parameter for the searching pinners as users instead of people. I sent PR waiting an approve from @seregazhuk

kaankilic avatar Feb 11 '20 00:02 kaankilic

+1 This issue must be fixed!

Array ( [messages] => Array ( [0] => To search Pinterest, please sign up or log in. )

[theme] => default

)

BurakBoz avatar Feb 23 '20 19:02 BurakBoz

I've created a pull request about it. Waiting for approval. But, you have different error than I faced. Your issue may something different. Do you use limit and offset functions? If yes, Could you provide them?

kaankilic avatar Feb 23 '20 20:02 kaankilic

I've tried your changes unfortunately it didn't worked for me. my usage:

foreach ($bot->pins->search($kelimerows['kelime'])->take(1)->skip($kelimerows['skip_id'])->get() as $pin)

BurakBoz avatar Feb 24 '20 19:02 BurakBoz

could you please check $kelimerows['skip_id'] value

kaankilic avatar Feb 24 '20 19:02 kaankilic

it's interval like 5

BurakBoz avatar Feb 24 '20 19:02 BurakBoz

Have you ever tried with different ip? Nowadays, pinterest has some minor changes on their API

kaankilic avatar Feb 24 '20 19:02 kaankilic

No but my code works sometimes I've made 30 requests 1 succeeded but I never know when it works or how.

BurakBoz avatar Feb 24 '20 19:02 BurakBoz

If you sure, you have a valid query parameter on search and pages exists. It might possibly a issue about ip. Possibbly, Pinterest could show you an alert for it.

kaankilic avatar Feb 24 '20 19:02 kaankilic

I'll check it with proxy

BurakBoz avatar Feb 24 '20 19:02 BurakBoz

Yes, my issue is ip thank you. Proxy fixed my problem

BurakBoz avatar Feb 24 '20 19:02 BurakBoz