예제 #1
0
 public BookingPriceSpider(ILogger <BookingPriceSpider> logger, INetConnection connection, IOptions <ConfigOptions> config, IParallelManager parallelManager, SpiderParams spiderParams) : base(logger, connection, config, parallelManager)
 {
     // Connection = new NetConnectionBooking(logger, config);
     Urls = new List <string> {
         string.Format("{0}?checkin={1};checkout={2};dist=0;group_adults={3};group_children={4};selected_currency={5}", "http://www.booking.com/hotel/pt/foreign-friend-lisbon.pt-pt.html", spiderParams.CheckIn, spiderParams.CheckOut, spiderParams.Adults, spiderParams.Children, spiderParams.Currency)
     };
 }
예제 #2
0
 public AirbnbSpider(ILogger <AirbnbSpider> logger, INetConnection connection, IOptions <ConfigOptions> config, IParallelManager parallelManager, SpiderParams spiderParams) : base(logger, connection, config, parallelManager)
 {
     // Connection = new NetConnectionAirbnb("https://www.airbnb.pt/rooms/5073240", logger, config);
     Urls = new List <string> {
         string.Format("https://www.airbnb.pt/rooms/ajax_refresh_subtotal?utf8=%E2%9C%93&checkin={1}&checkout={2}&number_of_guests={3}&hosting_id={0}&from_search_checkin={1}&from_search_checkout={2}", "https://www.airbnb.pt/rooms/5073240".Replace("https://www.airbnb.pt/rooms/", string.Empty), spiderParams.CheckIn, spiderParams.CheckOut, spiderParams.Adults, spiderParams.Currency)
     };
 }