参考链接: Pythonn编程技巧和窍门| 2(用于竞争性编程的语言)
python机票价格
As more and more travel agents are forced to hang fresh ‘For Lease’ signs in their windows, the Internet has taken up the mantle of helping aspirational aeronautic enthusiasts shop, compare, and purchase tickets for their next airborne adventure. But with so many different travel and hotel sites claiming to offer the best deals on airfare, how can you know which offers the best combination of discounts and ease of use?
随着越来越多的旅行社被迫在窗户上悬挂新的“ For Lease”标志,互联网承担了帮助有志向的航空爱好者购物,比较和购买下一次空中冒险的机票的重任。 但是,既然有这么多不同的旅行和酒店网站声称提供最优惠的机票价格,您怎么知道哪一个提供了折扣和易用性的最佳组合?
Read on to find out more in our guide to finding the cheapest airlines accommodations online.
继续阅读以了解更多信息,以在我们的指南中找到最便宜的航空公司住宿。
最佳网站 (Best Sites to Use)
Kayak
皮艇
Of all the services that clamor for your attention and patronage when you’re trying to get a good deal on a seat in first class, Kayak is the one that probably rings the most familiar bell (and for good reason, too). The site has experienced a meteoric rise in users since its debut, mostly due to its impressive pedigree of employees who come from the old guard of online airfare, including former Orbitz CEO Steve Hafner.
当您试图在头等舱座位上获得丰盛的收益时,所有吸引您注意和光顾的服务中,Kayak可能都会响起最熟悉的铃铛(也是有充分理由的)。 自首次亮相以来,该网站的用户数量激增,这主要是由于该网站的员工谱系令人印象深刻,他们来自在线机票的老派,包括Orbitz前首席执行官史蒂夫·哈夫纳(Steve Hafner)。
Kayak is a solid, reliable website that aggregates searches from all the major online travel destinations into one place to make it simple to quickly and efficiently rifle through all the competition at once. The list of available portals includes Priceline, Expedia, and CheapO air, and you can specifically customize whether you want just the flight, the flight plus a hotel, or the whole package including tickets to local attractions and a rental car.
皮划艇是一个坚实可靠的网站 ,它将来自所有主要在线旅游目的地的搜索汇总到一个地方,从而使快速,高效地一次完成所有比赛的步伐变得简单。 可用门户的列表包括Priceline,Expedia和CheapO air,您可以专门自定义是只需要航班,航班加酒店,还是包括当地景点门票和出租车的整套服务。
Of all three options listed here Kayak is easily the most popular, and it’s a great place to start if you’re looking to set up an all-inclusive package for big family outings rather than just a lone flight itself. As you’ll find out later, the price difference between booking full vacations and quick trips in the air can add up to a lot of extra savings (that is, if you know the right places to look).
在此处列出的所有三个选项中,皮划艇很容易成为最受欢迎的选项,如果您要为大型家庭出游设置全包套餐,而不仅仅是独自飞行,那它是一个不错的起点。 稍后您会发现,预订完整假期和空中旅行之间的价格差可以节省很多额外的钱(也就是说,如果您知道合适的地方)。
Google Flights
Google航班
As with many of their other online services (Google Maps, Gmail, Google Shopping), the Mountain View-based Internet search monolith has taken the hard part out of getting what you need from the Internet, and streamlined the process so it saves you as much money as possible.
与其他许多在线服务(谷歌地图,Gmail,谷歌购物)一样,基于山景城的互联网搜索独创性在从互联网上获取所需内容方面发挥了很大的作用,并简化了流程,因此可以节省您尽可能多的钱。
Google Flights is great for a number of reasons, not least of which is its “graphing” platform which will show you a detailed list of what prices for a flight look like depending on the day you fly in or out. Slide the date down the calendar and you might see the price drop, try and schedule your takeoff for the middle of a day on a Saturday, and the price jumps dramatically.
Google航班之所以出色,有很多原因,其中最重要的是其“制图”平台,该平台将向您显示航班价格的详细列表,具体取决于您乘飞机进出的日期。 将日期滑到日历上,您可能会看到价格下降,尝试将起飞安排在星期六的一天中间,价格会急剧上涨。
If there’s one thing we could ask for that the site doesn’t have, it would be some sort of indicator that revealed exactly why a flight got cheaper or more expensive to allow for finer tuning when on the hunt for the best possible price.
如果有一件事我们可以要求网站提供没有的东西,那将是某种指标,它揭示了为什么在寻找最佳价格时,航班变得更便宜或更昂贵,以便进行更精细的调整。
SkipLagged
跳过滞后
If the name of this airfare portal sounds familiar to you; it should.
如果您熟悉此机票门户的名称; 这应该。
The website Skiplagged.com first made headlines earlier this year when United Airlines threatened to sue its 22-year-old creator, Aktarer Zaman, over claims that his airfare shopper was taking advantage of illegal loopholes in order to get customers the lowest price on the flight of their choosing. What loopholes, you might ask?
Skiplagged.com网站于今年早些时候首次登上头条新闻,当时联合航空扬言要起诉其22岁的创作者Aktarer Zaman,理由是他的机票购买者利用非法漏洞来获取最低的价格。他们选择的飞行。 您可能会问什么漏洞?
Well, Skiplagged works like this: First, an algorithm takes a constant tally of all the flights that are being scheduled over the next six months. Next it looks for connections in particular cities that airlines might use to pack their planes with more people, or save on fuel costs when getting their passengers from point A to Point B. By purchasing a one-way ticket, Skiplagged saves you money by just letting you ride the rails from the first city to the next and get off the plane when it stops for its connection in the city you want to get to.
好吧,Skiplagged的工作方式如下:首先,算法对接下来六个月内计划的所有航班进行恒定计数。 接下来,它会寻找特定城市的联系,航空公司可能会使用这些联系来打包更多的人,或者在将乘客从A点运送到B点时节省燃油费用。通过购买单程票,Skipagged可以节省您的钱让您沿铁路从第一个城市到达下一个城市,并在飞机停靠在想要到达的城市时下车。
Keep in mind, however, that what makes SkipLagged work is circumventing the whole bag check system through unspent layovers. If you have a large family and plan to be checking a lot of bags, Skiplagged won’t work because by the time you get to your hotel in LA your luggage could already be halfway to Hong Kong. If you’re travelling light, alone, or just packing slim for a business trip however, Skiplagged offers the perfect combination of ingenuity and technology to give everyone the opportunity to see some of the world’s most beautiful destinations for just a fraction of what they’d normally expect to pay.
但是请记住,使SkipLagged工作的原因是通过未用的中转时间规避了整个行李托运系统。 如果您有一个大家庭,并打算检查很多行李,Skiplagged将无法正常工作,因为当您到达洛杉矶的酒店时,您的行李可能已经到达香港的一半了。 但是,如果您独自一人轻装旅行,或者只是为了商务旅行而打包行李,Skiplapped便将匠心与技术完美地结合在一起,使每个人都有机会看到世界上最美丽的目的地,而价格却只是他们的一小部分d通常期望付款。
The case against Zaman has since been thrown out, allowing Skiplagged to operate in the open and give customers the absolute best price they can get on the Internet for a flight that might otherwise cost two to five times as much from a regular vendor.
自那以后,针对Zaman的诉讼就被排除在外了,这使Skiplagged可以在公开场合运营,并为客户提供可以在互联网上获得的绝对最佳价格,否则这笔价格可能是常规供应商的两倍至五倍。
技巧和窍门 (Tips and Tricks)
Buy at the Right Moment, Fly at the Wrong One
在正确的时机购买,在错误的时机飞
Although this is still a topic that’s debated among professionals on the web who pride themselves on having the “insider info” on these types of things, many people believe that categorically, no matter where you live or who you fly with, Tuesday is the best day to buy a plane ticket. In our personal testing, we found on average there was a saving of around 5-10 percent when buying a ticket on a Tuesday as opposed to any other day of the week.
尽管这仍然是在Web专业人员之间争论不休的话题,这些专业人员以拥有有关此类事物的“内部信息”而感到自豪,但是许多人坚信,无论您住在何处或与谁同行,周二都是最好的一天买机票。 在我们的个人测试中,我们发现在星期二购买机票时,平均节省了大约5-10%,而不是一周中的其他任何一天。
As to why this price drop happens on that day in particular, we can’t say for sure, but according to data collected from 11,000 flights by CheapAir.com you should also try and make sure that Tuesday is exactly 49 days ahead of your planned trip. After combing through the data, the site concluded that 49 days was the sweet spot for airlines to book you on their planes, not too far outside of their scheduling, but also not so close that they have to make special adjustments to get you a seat on the trip you want.
至于为什么价格下降特别发生在当天,我们不能肯定地说,但是根据CheapAir.com从11,000个航班收集的数据,您还应尝试确保星期二比您的计划提前了49天旅行。 在梳理数据之后,该网站得出结论:49天是航空公司在飞机上预订您的最佳地点,距离时间表不远,而且距离也不算太近,因此他们必须进行特殊调整才能获得座位在您想要的旅程中。
Lastly, you can never go wrong with an early wake-up call. Traditionally airfare will cost a bit more if you try to fly during the normal hours when everyone else is awake and alert enough to tolerate the security line at the TSA checkpoint. On the other hand, if you buy your ticket either very early in the morning or late at night, the competition for those slots is lower, which means the airlines will knock them down to a discount to get the plane as full as they can before it takes off.
最后,提早唤醒电话绝对不会出错。 传统上,如果您在其他人都醒着的正常时间内尝试飞行,并且要足够警惕以容忍TSA检查站的安全线,则机票价格会更高。 另一方面,如果您在清晨或深夜购买机票,那么这些航班的竞争就比较低,这意味着航空公司会将其打折出售以使飞机尽可能地变满。它起飞了。
Clear Your Cookies
清除您的Cookie
Another trick which might just sound like we’re being paranoid is to always search for any tickets you plan on buying in an incognito window. Why? Well, it’s been known among the inner circle of tenacious travelers for awhile that airfare sites (Kayak and Google included) will shimmy around the price of a ticket depending on the number of times you’ve searched for it in your browser.
听起来似乎我们很偏执的另一个技巧是,始终在隐身窗口中搜索您计划购买的任何票证。 为什么? 好吧,一段时间以来,在顽强的旅行者内部众所周知,机票网站(包括Kayak和Google)会根据您在浏览器中搜索机票的次数来调整机票价格。
By keeping tabs on your cookies, the booking software can make it seem like seats are running out or the timeslot you want is hotly contested, and that if you don’t buy right now, the deal may not last another day.
通过在cookie上保留标签,预订软件可以使座位看起来快用完了,或者您想要的时间段受到激烈竞争,并且如果您现在不购买,交易可能不会再持续一天。
Use Your Smartphone to Board
使用智能手机登机
Another helpful tool you can use once you’re already at the airport with a bag slung across your back is your smartphone. While it may not get you a better discount on your ticket immediately, it will make the process of getting your bags checked and your family boarded much faster and easier than ever before.
当您已经在机场背着背包背着背包时,可以使用的另一个有用工具是智能手机。 虽然它可能无法立即为您带来更好的机票折扣,但是它将比以往任何时候都更快,更轻松地完成行李托运和家人寄宿的过程。
Plus, most of the apps available from major airlines will feature all sorts of loyalty programs which can pass on rewards or discounts each time you fly, as well as send you notifications when flights get suspiciously cheap for an alert you set up prior. Plan on flying across the country sometime next year, but don’t have a hard date ready yet? Just set your parameters in your account, and as soon as a ticket under the price you select pops up in the system, the app will text you with the perfect offer.
另外,主要航空公司提供的大多数应用程序都将具有各种忠诚度计划,这些计划可以在您每次飞行时传递奖励或折扣,并在航班价格可疑地便宜时向您发送通知,以提醒您之前设置的提醒。 计划明年某个时候在全国飞行,但是还没有准备好约会吗? 只需在您的帐户中设置参数,然后系统就会弹出您所选择价格的机票,该应用程序将为您发送完美的报价。
This also works for mailing lists on the site of your preferred airline, and the signups can be found on each of their respective websites.
这也适用于您首选航空公司网站上的邮件列表,并且可以在各自的网站上找到注册信息。
There are a lot of things about flying that aren’t as fun as they could be, but thanks to these tips, tricks, and loophole-loving websites, getting the best price on your trip is a simple way to remove some of the extra strain from your worldwide travelling experience.
关于飞行的很多事情并不尽如人意,但是由于有了这些提示,技巧和喜欢漏洞的网站,在旅途中获得最优惠的价格是消除一些额外费用的简单方法从您的环球旅行经验中解脱出来。
Image Credits: Kayak 1, 2, SkipLagged, Google Flights, Alaska
图片来源:独木舟1 , 2 , SkipLagged , 谷歌的航班 ,阿拉斯加
翻译自: https://www.howtogeek.com/228649/how-to-get-the-best-possible-price-for-airfare-online/
python机票价格