Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
f3d2ffbd
Commit
f3d2ffbd
authored
Jun 05, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
爬取数据
parent
bea3988c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
2 deletions
+64
-2
curl_cookie.txt
application/chat/utils/curl_cookie.txt
+4
-2
route.php
application/route.php
+1
-0
Reptile.php
application/search/controller/Reptile.php
+28
-0
ReptileService.php
application/search/service/ReptileService.php
+31
-0
No files found.
application/chat/utils/curl_cookie.txt
View file @
f3d2ffbd
# Netscape HTTP Cookie File
# http://curl.haxx.se/docs/http-cookies.html
# http
s
://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
a1.easemob.com FALSE / FALSE 1523278173 rememberMe deleteMe
.haozu.com TRUE / FALSE 1559618444 hzucsso deleted
.haozu.com TRUE / FALSE 1559640044 haozu_user %7B%22index%22%3A3%2C%22name%22%3A%22haozu%22%2C%22value%22%3A%22haozu%22%2C%22opt_scope%22%3A2%7D
.haozu.com TRUE / FALSE 1559791244 citydomain sh
application/route.php
View file @
f3d2ffbd
...
...
@@ -934,6 +934,7 @@ Route::group('broker', [
Route
::
group
(
'search'
,
[
'search'
=>
[
'search/Search/search'
,
[
'method'
=>
'get|post'
]],
'getHaoZu'
=>
[
'search/Reptile/getHaoZu'
,
[
'method'
=>
'get|post'
]],
]);
...
...
application/search/controller/Reptile.php
0 → 100644
View file @
f3d2ffbd
<?php
namespace
app\search\controller
;
use
app\search\extend\Basic
;
use
app\search\service\ReptileService
;
use
think\Request
;
/**
* Created by PhpStorm.
* User: zw
* Date: 2019/6/4
* Time: 11:08
*/
class
Reptile
extends
Basic
{
private
$service_
;
public
function
__construct
(
Request
$request
=
null
)
{
parent
::
__construct
(
$request
);
$this
->
service_
=
new
ReptileService
();
}
public
function
getHaoZu
(){
$url
=
"https://cowork.haozu.com/sh/list/"
;
$result
=
$this
->
service_
->
getHaoZu
(
$url
);
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
}
\ No newline at end of file
application/search/service/ReptileService.php
0 → 100644
View file @
f3d2ffbd
<?php
namespace
app\search\service
;
use
app\chat\utils\CurlUtil
;
/**
* Created by PhpStorm.
* User: zw
* Date: 2019/6/4
* Time: 11:10
*/
class
ReptileService
{
public
function
getHaoZu
(
$url
)
{
$curl
=
new
CurlUtil
();
$curl
->
headers
=
[
"Accept"
=>
"application/json"
,
"Content-Type"
=>
"application/json;charset=utf-8"
,
];
$curl
->
options
=
[
"CURLOPT_SSL_VERIFYPEER"
=>
0
,
"CURLOPT_SSL_VERIFYHOST"
=>
2
,
];
$response
=
$curl
->
post
(
$url
,
[]);
return
$response
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment