gitpod /workspace/spiders/qunar $ python3 qunar.py
/home/gitpod/.pyenv/versions/3.8.3/lib/python3.8/site-packages/urllib3/connectionpool.py:979: InsecureRequestWarning: Unverified HTTPS request is being made to host 'www.qunar.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
/home/gitpod/.pyenv/versions/3.8.3/lib/python3.8/site-packages/urllib3/connectionpool.py:979: InsecureRequestWarning: Unverified HTTPS request is being made to host 'touch.train.qunar.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
/home/gitpod/.pyenv/versions/3.8.3/lib/python3.8/site-packages/urllib3/connectionpool.py:979: InsecureRequestWarning: Unverified HTTPS request is being made to host 'flight.qunar.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
/home/gitpod/.pyenv/versions/3.8.3/lib/python3.8/site-packages/urllib3/connectionpool.py:979: InsecureRequestWarning: Unverified HTTPS request is being made to host 'flight.qunar.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
warnings.warn(
Traceback (most recent call last):
File "qunar.py", line 110, in
airplane('深圳','北京','2020-05-19','2020-05-22')
File "qunar.py", line 105, in airplane
t1000 = re.sub('(new Image).*?,', '', r.json()['t1000'])
KeyError: 't1000'
gitpod /workspace/spiders/qunar $ python3 qunar.py /home/gitpod/.pyenv/versions/3.8.3/lib/python3.8/site-packages/urllib3/connectionpool.py:979: InsecureRequestWarning: Unverified HTTPS request is being made to host 'www.qunar.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings warnings.warn( /home/gitpod/.pyenv/versions/3.8.3/lib/python3.8/site-packages/urllib3/connectionpool.py:979: InsecureRequestWarning: Unverified HTTPS request is being made to host 'touch.train.qunar.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings warnings.warn( /home/gitpod/.pyenv/versions/3.8.3/lib/python3.8/site-packages/urllib3/connectionpool.py:979: InsecureRequestWarning: Unverified HTTPS request is being made to host 'flight.qunar.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings warnings.warn( /home/gitpod/.pyenv/versions/3.8.3/lib/python3.8/site-packages/urllib3/connectionpool.py:979: InsecureRequestWarning: Unverified HTTPS request is being made to host 'flight.qunar.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings warnings.warn( Traceback (most recent call last): File "qunar.py", line 110, in
airplane('深圳','北京','2020-05-19','2020-05-22')
File "qunar.py", line 105, in airplane
t1000 = re.sub('(new Image).*?,', '', r.json()['t1000'])
KeyError: 't1000'