n0ts / yahoo_business_browser

登录yahoo商业页面的脚本

dev-master 2015-09-14 16:32 UTC

This package is not auto-updated.

Last update: 2020-01-14 11:57:18 UTC


README

关于

登录并抓取您的business.yahoo.co.jp页面。受以下代码启发,用于登录yahoo.co.jp页面 https://gist.github.com/comeonly/3032161

要求

PHP 5.4 HTTP_Request2 (pear install HTTP_Request2)

安装

$ composer install

示例

require 'yahoo_business_browser.php';

$id = '<your id>';
$pass = '<your password>;
$ybb = new YahooBusinessBrowser($id, $pass);
if (empty($ybb->cookies)) {
    die('Could not login');
}

$content = $ybb->getGetBody(YahooBusinessBrowser::PARTNER_TOP_PAGE.'/DeliveryReport/index');
if ($content) {
    print_r($ybb->body);
}

作者

作者:Naoya Nakazawa (me@n0ts.org)