資源簡(jiǎn)介
tp5 利用QueryList + PhantomJS實(shí)現(xiàn)抓取淘寶京東天貓商品數(shù)據(jù) 商品圖片,商品詳情,規(guī)格,參數(shù),價(jià)格都能完美獲取
代碼片段和文件信息
/*
???+----------------------------------------------------------------------+
???|?Twig?Extension???????????????????????????????????????????????????????|
???+----------------------------------------------------------------------+
???|?Copyright?(c)?2011?Derick?Rethans????????????????????????????????????|
???+----------------------------------------------------------------------+
???|?Redistribution?and?use?in?source?and?binary?forms?with?or?without???|
???|?modification?are?permitted?provided?that?the?conditions?mentioned???|
???|?in?the?accompanying?LICENSE?file?are?met?(BSD-3-Clause).?????????????|
???+----------------------------------------------------------------------+
???|?Author:?Derick?Rethans??????????????????????|
???+----------------------------------------------------------------------+
?*/
#ifdef?HAVE_CONFIG_H
#include?“config.h“
#endif
#include?“php.h“
#include?“php_twig.h“
#include?“ext/standard/php_var.h“
#include?“ext/standard/php_string.h“
#include?“ext/standard/php_smart_str.h“
#include?“ext/spl/spl_exceptions.h“
#include?“Zend/zend_object_handlers.h“
#include?“Zend/zend_interfaces.h“
#include?“Zend/zend_exceptions.h“
#ifndef?Z_ADDREF_P
#define?Z_ADDREF_P(pz)????????????????(pz)->refcount++
#endif
#ifndef?E_USER_DEPRECATED
#define?E_USER_DEPRECATED (1<<14L)
#endif
#define?FREE_DTOR(z)? \
zval_dtor(z);? \
efree(z);
#if?PHP_VERSION_ID?>=?50300
#define?APPLY_TSRMLS_DC?TSRMLS_DC
#define?APPLY_TSRMLS_CC?TSRMLS_CC
#define?APPLY_TSRMLS_FETCH()
#else
#define?APPLY_TSRMLS_DC
#define?APPLY_TSRMLS_CC
#define?APPLY_TSRMLS_FETCH()?TSRMLS_FETCH()
#endif
ZEND_BEGIN_ARG_INFO_EX(twig_template_get_attribute_args?ZEND_SEND_BY_VAL?ZEND_RETURN_VALUE?6)
ZEND_ARG_INFO(0?template)
ZEND_ARG_INFO(0?object)
ZEND_ARG_INFO(0?item)
ZEND_ARG_INFO(0?arguments)
ZEND_ARG_INFO(0?type)
ZEND_ARG_INFO(0?isDefinedTest)
ZEND_END_ARG_INFO()
#ifndef?PHP_FE_END
#define?PHP_FE_END?{?NULL?NULL?NULL}
#endif
static?const?zend_function_entry?twig_functions[]?=?{
PHP_FE(twig_template_get_attributes?twig_template_get_attribute_args)
PHP_FE_END
};
PHP_RSHUTDOWN_FUNCTION(twig)
{
#if?ZEND_DEBUG
CG(unclean_shutdown)?=?0;?/*?get?rid?of?PHPUnit‘s?exit()?and?report?memleaks?*/
#endif
return?SUCCESS;
}
zend_module_entry?twig_module_entry?=?{
STANDARD_MODULE_HEADER
“twig“
twig_functions
NULL
NULL
NULL
PHP_RSHUTDOWN(twig)
NULL
PHP_TWIG_VERSION
STANDARD_MODULE_PROPERTIES
};
#ifdef?COMPILE_DL_TWIG
ZEND_GET_MODULE(twig)
#endif
static?int?TWIG_ARRAY_KEY_EXISTS(zval?*array?zval?*key)
{
if?(Z_TYPE_P(array)?!=?IS_ARRAY)?{
return?0;
}
switch?(Z_TYPE_P(key))?{
case?IS_NULL:
return?zend_hash_exists(Z_ARRVAL_P(array)?““?1);
case?IS_BOOL:
case?IS_DOUBLE:
convert_to_long(key);
case?IS_LONG:
return?zend_hash_index_exists(Z_ARRVAL_P(array)?Z_LVAL_P(key));
default:
convert_to_string(key);
return?zend_symtable_exists(Z_ARRVAL_P(array)?Z_STRVAL_P(key)?Z_STRLEN_P(key)?+?1);
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????????35??2018-12-20?10:24??thinkphp\.gitignore
?????文件???????2038??2018-12-20?10:24??thinkphp\.travis.yml
?????文件?????????13??2018-12-20?10:24??thinkphp\application\.htaccess
?????文件????????606??2018-12-20?10:24??thinkphp\application\command.php
?????文件????????156??2018-12-20?10:24??thinkphp\application\common\controller\App.php
?????文件???????3014??2018-12-20?10:24??thinkphp\application\common\controller\Files.php
?????文件???????8706??2018-12-20?10:24??thinkphp\application\common\controller\Ftp.php
?????文件??????20018??2018-12-20?12:55??thinkphp\application\common\controller\TpgetShop.php
?????文件???????2499??2018-12-20?10:24??thinkphp\application\common.php
?????文件???????8166??2018-12-20?10:24??thinkphp\application\config.php
?????文件???????1957??2018-12-20?10:24??thinkphp\application\databa
?????文件????????636??2018-12-20?10:24??thinkphp\application\extra\queue.php
?????文件???????2695??2018-12-20?11:48??thinkphp\application\index\controller\Index.php
?????文件????????825??2018-12-20?10:24??thinkphp\application\route.php
?????文件??????17401??2018-12-20?13:06??thinkphp\application\run\controller\Getgoods.php
?????文件????????981??2018-12-20?10:24??thinkphp\application\tags.php
?????文件???????1099??2018-12-20?10:24??thinkphp\build.php
?????文件????????782??2018-12-20?10:24??thinkphp\composer.json
?????文件??????47185??2018-12-20?10:24??thinkphp\composer.lock
?????文件?????????13??2018-12-20?10:24??thinkphp\extend\.gitignore
?????文件???????1822??2018-12-20?10:24??thinkphp\LICENSE.txt
?????文件????????216??2018-12-20?10:24??thinkphp\public\.htaccess
?????文件???????1150??2018-12-20?10:24??thinkphp\public\favicon.ico
?????文件????????842??2018-12-20?11:54??thinkphp\public\index.php
?????文件?????????24??2018-12-20?10:24??thinkphp\public\robots.txt
?????文件????????840??2018-12-20?10:24??thinkphp\public\router.php
?????文件?????????13??2018-12-20?10:24??thinkphp\public\static\.gitignore
?????文件???????5775??2018-12-20?10:24??thinkphp\README.md
?????文件?????????13??2018-12-20?10:24??thinkphp\runtime\.gitignore
?????文件???????2459??2018-12-20?10:24??thinkphp\runtime\log\201812\19.log
............此處省略2855個(gè)文件信息
- 上一篇:psp 3.71M33
- 下一篇:DEA solver
評(píng)論
共有 條評(píng)論