from aiohttp import web
import zlib
async def index(request):
return web.Response(text=await request.text())
app = web.Application()
If you have applied for our Python vikend course this task serves to asess if you have sufficient knowledge to enjoy and learn something on our course.
Your task is to use our flights API to find a flight and book the flight on the booking API. If it sounds too complicated. Don't worry, it's not.
We at Kiwi.com use simple APIs based on HTTP, usually with payload in JSON format. If you've never used an API click here:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
apt-get install python-setuptools python-dev build-essential libcurl4-openssl-dev libssl-dev | |
easy_install pip | |
pip install grab cssselect | |
python -c 'import grab; print(grab.Grab().go("kiwi.com").code)' |
Pomocí této úlohy nám prokážete, že jste s Pythonem již přišli do styku a znáte jeho základy. Tím pádem by nemělo nic bránit tomu, abyste si workshop užili a nebyl pro vás příliš složitý.
##Limitace
Žádné limitace.
- Python2.7 nebo 3
- všechny moduly jsou povoleny
NewerOlder