GithubHelp home page GithubHelp logo

Not working about php-pinterest-bot HOT 5 CLOSED

seregazhuk avatar seregazhuk commented on July 25, 2024
Not working

from php-pinterest-bot.

Comments (5)

seregazhuk avatar seregazhuk commented on July 25, 2024

Hi, @misterkek
these methods return a Traversable object. You can iterate it with a foreach loop, or use toArray() method to get results as array:

$a=$bot->pins->feed(100)->toArray();
$b=$bot->pins->search('batman',100)->toArray();

It is done becouse Pinterest doesn't return all results at once.

And please update library for version 5.1.6. There was a fix with feed method.

from php-pinterest-bot.

misterkek avatar misterkek commented on July 25, 2024

@seregazhuk Спасиб, братишка

from php-pinterest-bot.

misterkek avatar misterkek commented on July 25, 2024

@seregazhuk дошли руки проверить...
всё равно не работает почему-то, просто пустой массив выводит..
причем не только в этом методе, а даже при попытке просмотреть названия бОрдов

from php-pinterest-bot.

seregazhuk avatar seregazhuk commented on July 25, 2024

@misterkek , а ты скачал последнюю версию 5.1.6?
Вот сейчас проверил:

$bot = PinterestBot::create();
$bot->auth->login('login', 'pass');

$a=$bot->pins->feed(100)->toArray();
$b=$bot->pins->search('batman',100)->toArray();

В обоих случаях вернулись данные.
Может кстати акк забанили? В браузере норм отображается все?

from php-pinterest-bot.

misterkek avatar misterkek commented on July 25, 2024

Да, последнюю вроде скачал: вбил заново composer require seregazhuk/pinterest-bot и перезалил файлы.
Аккаунт корректно из браузера работает, нигде не написано, что забанен.

Интересный момент: попробовал намеренно исказить данные для авторизации, а он при любых значениях возвращает true.

P.S. Попробовал на другом сервере - там работает. Похоже, IP забанили.

from php-pinterest-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.