PHPackages                             xuliangliang22/search - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. xuliangliang22/search

ActiveLibrary

xuliangliang22/search
=====================

composer gather iqiyi youku vqq video urls

11.0(8y ago)0231MITPHPPHP &gt;=5.6.4

Since May 10Pushed 8y agoCompare

[ Source](https://github.com/xuliangliang22/search)[ Packagist](https://packagist.org/packages/xuliangliang22/search)[ RSS](/packages/xuliangliang22-search/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (2)Versions (9)Used By (0)

search
======

[](#search)

this is gather iqiyi youku vqq video urls and baidu pic 360 pic img urls and download pic to loacl

video
-----

[](#video)

```
include 'vendor/autoload.php';
use XuLiangLiang\Search\Factory;
//$video_type ['iqiyi','youku','vqq'],只选择其中一个作为参数即可
$vfactory = new Factory();
$vfactory->getSelfObj($video_type);
$videoObj = $vfactory->factoryObj;
//获得列表页的数组['title'=>'标题','litpic'=>'缩略图','con_url'=>'内容链接地址']
//$keyword (搜索的关词) ,$pagenum (第几页)
$data = $videoObj->getVideoList($keyword,$pagenum);
if($data === null){
    echo "this is error";
    exit;
}
//获得内容视频链接,$con_url上面的数据中的con_url
$videoUrl = $videoObj->getVideoBody($con_url);
if($videoUrl === null){
    echo "this is error";
    exit;
}
```

with pic
--------

[](#with-pic)

\###baidu

```
//size [全部尺寸=>0,特大尺寸=>9,大尺寸=>3,中尺寸=>2,小尺寸=>1];
//如果传递了with 或 height 就不需要传递size
//mold = ['全部'=>'s=0&lm=0&st=-1&face=0','头像'=>'s=3&lm=0&st=-1&face=0','面部特写'=>'s=0&lm=0&st=-1&face=1','卡通漫画'=>'s=0&lm=0&st=1&face=0','简笔画'=>'s=0&lm=0&st=2&face=0','动态图片=>'s=0&lm=6&st=-1&face=0','静态图片'=>'s=0&lm=7&st=-1&face=0']
//color ['all'=>0,'red'=>1,'orage'=>256,'yellow'=>2,'green'=>4,'violet'=>32,'pink'=>64,'cyan'=>8,'blue'=>16,'brown'=>128,'white'=>1024,'black'=>512,'black-and-white'=>2048];
//return picurlsArr
include "vendor/autoload.php"
use XuLiangLiang\Search\Factory
//$keyword
$width = 800;
$height = 800;
$size = 0|9...
$mold = 's=0&lm=0&st=-1&face=0'
$color = 0
$attrArr = array(
//    'width' => $width,
//    'height' => $height,
    'size'=>$size,
    'mold' => $mold,
    'color' => $color
);
$factory = new Factory();
$factory->getSelfObj('baidupic');
$baidupicObj = $pfactory->factoryObj;
//$attrArr可以不传,默认为null
$rest = $baiduPicObj->getPic($keyword, $attrArr);
```

\###360

```
// retrun pic urls arr
//size [全部尺寸=>0,大尺寸=>1,中尺寸=>2,小尺寸=>3,壁纸尺寸=>4];
//mold  [动态图片=>d 静态图片=>s]
//&color [red orange yellow green grass blue purple pink brown white black bandw]
include "vendor/autoload.php"
use XuLiangLiang\Search\Factory
$pfactory = new Factory('sansixpic')
$sansixpicObj = $pfactory->factoryObj;
$rest = $sansixpicObj->getpic($key,$attrArr);
```

图片下载
----

[](#图片下载)

```
include "vendor/autoload.php"
use XuLiangLiang\Search\Factory
$factory = new Factory();
$factory->getSelfObj('picdown');
$picObj = $factory->factoryObj;
//$fileName [本地保存文件名,可以是数组,example:/home/images/xxxx.jpg | array('/home/images/xxx.jpg','/home/images/xxxx.jpg')]
//$imgurl [图片网络路径,可以是数组,example:http://image.baidu.xxx.jpg | array('http://image.baidu.xxxx.jpg','http://image.baidu.xxx.jpg')]
//如果是数组,保存路径与网络地址一一对应
//@return 下载图片保存的绝对路径数组
$picObj->imgDown($fileName, $imgurl);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Recently: every ~34 days

Total

8

Last Release

3145d ago

Major Versions

6.0 → 7.02017-05-15

7.0 → 8.02017-05-18

8.0 → 9.02017-05-19

9.0 → 10.02017-08-31

10.0 → 11.02017-09-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c2a95746ef164548ae3e8314236c1a3f8ffb325ec8dd9e564f71424fca2ab31?d=identicon)[xuliangliang22](/maintainers/xuliangliang22)

---

Top Contributors

[![xuliangliang22](https://avatars.githubusercontent.com/u/26833029?v=4)](https://github.com/xuliangliang22 "xuliangliang22 (31 commits)")

### Embed Badge

![Health badge](/badges/xuliangliang22-search/health.svg)

```
[![Health](https://phpackages.com/badges/xuliangliang22-search/health.svg)](https://phpackages.com/packages/xuliangliang22-search)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
