快递100的数据调用接口,我是用来开发微信公众平台的快递查询功能的。
-
$kuaidi_data = file_get_contents("kuaidiinfo.txt");
- $sp = explode("\n",$kuaidi_data);
- //var_dump($sp);
- $conut = count($sp);
- echo "".$conut."
";
- //$code = array();
- //$company = array();
- $dbname = "data.dat";
- $dbh=new PDO("sqlite:".$dbname);
- $create_sql = "CREATE TABLE kuaidi(
- id INTEGER PRIMARY KEY,
- code VARCHAR(20) NOT NULL,
- company TEXT NOT NULL
- )";
- $dbh->exec($create_sql);
-
- for($i=0;$i $kdinfo = explode(" ",$sp[$i]);
- $code = $kdinfo[0];
- $company = $kdinfo[1];
-
- //$inserte_sql = "INSERT INTO kuaidi VALUES('','".$code."','".$company."')";
- $inserte_sql = "INSERT INTO kuaidi (`code`,`company`) VALUES('".$code."','".strtoupper($company)."')";
- //$inserte_sql = "INSERT INTO kuaidi VALUES('',"fdsfds","fdsfdsf")";
- echo $inserte_sql."
";
- $dbh->exec($inserte_sql);
- }
-
-
复制代码
- aae aae全球专递
- anjie 安捷快递
- anxindakuaixi 安信达快递
- biaojikuaidi 彪记快递
- bht bht
- baifudongfang 百福东方国际物流
- coe 中国东方(COE)
- changyuwuliu 长宇物流
- datianwuliu 大田物流
- debangwuliu 德邦物流
- dhl dhl
- dpex dpex
- dsukuaidi d速快递
- disifang 递四方
- ems ems快递
- fedex fedex(国外)
- feikangda 飞康达物流
- fenghuangkuaidi 凤凰快递
- feikuaida 飞快达
- guotongkuaidi 国通快递
- ganzhongnengda 港中能达物流
- guangdongyouzhengwuliu 广东邮政物流
- gongsuda 共速达
- huitongkuaidi 汇通快运
- hengluwuliu 恒路物流
- huaxialongwuliu 华夏龙物流
- haihongwangsong 海红
- haiwaihuanqiu 海外环球
- jiayiwuliu 佳怡物流
- jinguangsudikuaijian 京广速递
- jixianda 急先达
- jjwl 佳吉物流
- jymwl 加运美物流
- jindawuliu 金大物流
- jialidatong 嘉里大通
- jykd 晋越快递
- kuaijiesudi 快捷速递
- lianb 联邦快递(国内)
- lianhaowuliu 联昊通物流
- longbanwuliu 龙邦物流
- lijisong 立即送
- lejiedi 乐捷递
- minghangkuaidi 民航快递
- meiguokuaidi 美国快递
- menduimen 门对门
- ocs OCS
- peisihuoyunkuaidi 配思货运
- quanchenkuaidi 全晨快递
- quanfengkuaidi 全峰快递
- quanjitong 全际通物流
- quanritongkuaidi 全日通快递
- quanyikuaidi 全一快递
- rufengda 如风达
- santaisudi 三态速递
- shenghuiwuliu 盛辉物流
- shentong 申通
- shunfeng 顺丰
- sue 速尔物流
- shengfeng 盛丰物流
- saiaodi 赛澳递
- tiandihuayu 天地华宇
- tiantian 天天快递
- tnt tnt
- ups ups
- wanjiawuliu 万家物流
- wenjiesudi 文捷航空速递
- wuyuan 伍圆
- wxwl 万象物流
- xinbangwuliu 新邦物流
- xinfengwuliu 信丰物流
- yafengsudi 亚风速递
- yibangwuliu 一邦速递
- youshuwuliu 优速物流
- youzhengguonei 邮政包裹挂号信
- youzhengguoji 邮政国际包裹挂号信
- yuanchengwuliu 远成物流
- yuantong 圆通速递
- yuanweifeng 源伟丰快递
- yuanzhijiecheng 元智捷诚快递
- yunda 韵达快运
- yuntongkuaidi 运通快递
- yuefengwuliu 越丰物流
- yad 源安达
- yinjiesudi 银捷速递
- zhaijisong 宅急送
- zhongtiekuaiyun 中铁快运
- zhongtong 中通速递
- zhongyouwuliu 中邮物流
- zhongxinda 忠信达
- zhimakaimen 芝麻开门
复制代码
|