mjphaynes/pinterest-bot
Composer 安装命令:
composer require mjphaynes/pinterest-bot
包简介
PHP library for Pintrest
关键字:
README 文档
README
A PHP library to help you work with your Pinterest account without API credentials.
The Pinterest API is painful: receiving an access token involves registering a developer account, registering an application, then waiting for confirmation. Not to mention, the public API itself is poorly implemented and has a limited set of features.
This library offers the full functionality available on Pinterest's website, with no need to register an application to receive an access token. All that's needed is your account login information (but even this is not required if you don't plan on creating pins, writing comments or sending messages)!
- Installation
- Quick Start
- How to avoid ban
- Examples
- Account
- Boards
- Pins
- Pinners
- Interests and topics
- Search
- Inbox
- Keywords
- Error handling
- Use proxy
- Custom request settings
- Cookies
- Pagination
Installation
Dependencies
Library requires CURL extension and PHP 7.0 or above.
The recommended way to install this library is via Composer. New to Composer?
composer require seregazhuk/pinterest-bot
Quick Start
// You may need to amend this path to locate Composer's autoloader require('vendor/autoload.php'); use seregazhuk\PinterestBot\Factories\PinterestBot; $bot = PinterestBot::create(); // Login $bot->auth->login('mypinterestlogin', 'mypinterestpassword'); // Get lists of your boards $boards = $bot->boards->forUser('yourUserName'); // Create a pin $bot->pins->create('http://exmaple.com/image.jpg', $boards[0]['id'], 'Pin description');
Note: Some methods (e.g. get user followers/following, pins likes/dislikes, search and other feed queries) use Pinterest navigation through results (with bookmarks). This means that for every batch of results, a call is made to Pinterest and a Pagination object with Pinterest API results is returned.
How to avoid ban
To avoid being banned by Pinterest, do not aggressively pin or write comments (e.g. creating hundreds of pins in a single minute).
Do this by inserting timeouts (sleep($seconds)) with calls.
Examples
These articles provide examples of common tasks that can be performed with the bot:
- Automate pinning (source code)
- Multiple Accounts and Proxy (source code)
- Comments, Likes And Repins (source code)
- Followers (source code)
- Parsing Pins (source code)
How can I thank you?
Why not star this GitHub repo? I'd love the attention! Or, you can donate to my project on PayPal:
Thanks!
mjphaynes/pinterest-bot 适用场景与选型建议
mjphaynes/pinterest-bot 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.94k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 04 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「lib」 「pinterest」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mjphaynes/pinterest-bot 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mjphaynes/pinterest-bot 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mjphaynes/pinterest-bot 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Library to validate and parse social media profile URLs
This Plugin enables you to display RSS.App feeds (Instagram, Twitter, Facebook and more) in TYPO3 - more information on https://rss.app
A flexible FTP, SSL-FTP, and SSH-based SFTP client for PHP. This lib provides helpers that are easy to use to manage the remote files.
Client Legacy lib for Rest PKI
Biblioteca para geração de NFSE de Belo Horizonte
Laravel social media auto post package - Complete solution for posting to 8 major social media platforms
统计信息
- 总下载量: 4.94k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-07
