Commit 3c35c5d4 authored by 罗超's avatar 罗超

调整

parent 132741d8
......@@ -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);
......
......@@ -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);
......
......@@ -27,10 +27,10 @@ namespace DotnetSpider.Spiders.Rules.LionRule
//3、获取行程团期
await LionTravelPriceSpider.RunAsync();
////4、获取具体的价格
//4、获取具体的价格
await LionPriceDetailsSpider.RunAsync();
////5、获取具体的航班
//5、获取具体的航班
await LionFlightSpider.RunAsync();
//6、持久化数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment