Download the PHP package rieon/crawler-oauth without Composer
On this page you can find all versions of the php package rieon/crawler-oauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rieon/crawler-oauth
More information about rieon/crawler-oauth
Files in rieon/crawler-oauth
Download rieon/crawler-oauth
More information about rieon/crawler-oauth
Files in rieon/crawler-oauth
Vendor rieon
Package crawler-oauth
Short Description an oauth login lib for a web crawler
License MIT
Package crawler-oauth
Short Description an oauth login lib for a web crawler
License MIT
Please rate this library. Is it a good library?
Informations about the package crawler-oauth
CrawlerOauth
an php oauth lib for web crawler
用途
在爬取一个只有第三方Oauth登陆的网站时,通常需要扫码登陆,这是一个比较繁琐的过程,这个包为你解决了这个问题。
支持的Oauth服务提供商
- 微信 (new Rieon\CrawlerOauth\Weixin)
- 微博 (new Rieon\CrawlerOauth\Weibo)
- 更多正在路上了~~~
正确食用方法
-
安装这个包
-
引入并实例化(以微博为例)
- 得到Cookies
额外:
-
获得二维码路径
-
获得二维码图像
- 参数说明
Oauth请求地址: Oauth客户端的地址,重定向到Oauth服务器之前的那个地址
二维码保存目录即为Oauth登陆时扫描二维码的保存目录,相对绝对
例子
在 example
目录中有一个index.php
方法
- cookies() 获得cookies
- qrcode() 获得二维码路径
- qrcode(true) 获得二维码图像
License
MIT
All versions of crawler-oauth with dependencies
PHP Build Version
Package Version
Requires
guzzlehttp/guzzle Version
^6.2
The package rieon/crawler-oauth contains the following files
Loading the files please wait ....