Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
spider
Project
Project
Details
Activity
Releases
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
viitto
spider
Commits
3c35c5d4
Commit
3c35c5d4
authored
Jul 28, 2020
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
132741d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
BestListSpider.cs
src/DotnetSpider.Spiders/Rules/BestRule/BestListSpider.cs
+1
-1
BestPageSpider.cs
src/DotnetSpider.Spiders/Rules/BestRule/BestPageSpider.cs
+1
-1
LionService.cs
src/DotnetSpider.Spiders/Rules/LionRule/LionService.cs
+2
-2
No files found.
src/DotnetSpider.Spiders/Rules/BestRule/BestListSpider.cs
View file @
3c35c5d4
...
...
@@ -45,7 +45,7 @@ namespace DotnetSpider.Spiders.Rules.BestRule
{
var
request
=
new
Request
(
$"https://travel-api.ittms.com.tw/travel/getmany/v1"
);
request
.
Method
=
"POST"
;
var
param
=
$"date_to=2020/12/31&available_flag=&special_icon_code=&data_type=1&date=20200716162954&travel_list_code=
689,721,809,146,720,811,810,812,718
&ittms_code=C000061&takeoff_city=&page_count=100&travel_list=&sort_type=D&account=IttmsApp&date_from=2020/07/18&page=
{
i
}
&travel_title=&checksum=362073AB28"
;
var
param
=
$"date_to=2020/12/31&available_flag=&special_icon_code=&data_type=1&date=20200716162954&travel_list_code=
11
&ittms_code=C000061&takeoff_city=&page_count=100&travel_list=&sort_type=D&account=IttmsApp&date_from=2020/07/18&page=
{
i
}
&travel_title=&checksum=362073AB28"
;
var
content
=
new
StringContent
(
param
,
"application/x-www-form-urlencoded"
,
"UTF-8"
);
request
.
Content
=
MessagePackSerializer
.
Typeless
.
Serialize
(
content
);
requests
.
Add
(
request
);
...
...
src/DotnetSpider.Spiders/Rules/BestRule/BestPageSpider.cs
View file @
3c35c5d4
...
...
@@ -39,7 +39,7 @@ namespace DotnetSpider.Spiders.Rules.BestRule
AddDataFlow
(
new
PagerParser
());
var
request
=
new
Request
(
$"https://travel-api.ittms.com.tw/travel/getmany/v1"
);
request
.
Method
=
"POST"
;
var
param
=
"date_to=2020/12/31&available_flag=&special_icon_code=&data_type=1&date=20200716162954&travel_list_code=
689,721,809,146,720,811,810,812,718
&ittms_code=C000061&takeoff_city=&page_count=5000&travel_list=&sort_type=D&account=IttmsApp&date_from=2020/07/18&page=1&travel_title=&checksum=362073AB28"
;
var
param
=
"date_to=2020/12/31&available_flag=&special_icon_code=&data_type=1&date=20200716162954&travel_list_code=
11
&ittms_code=C000061&takeoff_city=&page_count=5000&travel_list=&sort_type=D&account=IttmsApp&date_from=2020/07/18&page=1&travel_title=&checksum=362073AB28"
;
var
content
=
new
StringContent
(
param
,
"application/x-www-form-urlencoded"
,
"UTF-8"
);
request
.
Content
=
MessagePackSerializer
.
Typeless
.
Serialize
(
content
);
...
...
src/DotnetSpider.Spiders/Rules/LionRule/LionService.cs
View file @
3c35c5d4
...
...
@@ -27,10 +27,10 @@ namespace DotnetSpider.Spiders.Rules.LionRule
//3、获取行程团期
await
LionTravelPriceSpider
.
RunAsync
();
//
//
4、获取具体的价格
//4、获取具体的价格
await
LionPriceDetailsSpider
.
RunAsync
();
//
//
5、获取具体的航班
//5、获取具体的航班
await
LionFlightSpider
.
RunAsync
();
//6、持久化数据
...
...
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