From 15f80fa233b93039f33118cfaea76c3ace6ad868 Mon Sep 17 00:00:00 2001 From: HardworkFish <625310581@qq.com> Date: Wed, 26 Apr 2017 07:06:20 +0800 Subject: [PATCH 1/5] add a file that describes the project --- "\351\241\271\347\233\256\350\257\264\346\230\216.md" | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 "\351\241\271\347\233\256\350\257\264\346\230\216.md" diff --git "a/\351\241\271\347\233\256\350\257\264\346\230\216.md" "b/\351\241\271\347\233\256\350\257\264\346\230\216.md" new file mode 100644 index 0000000..d573d28 --- /dev/null +++ "b/\351\241\271\347\233\256\350\257\264\346\230\216.md" @@ -0,0 +1,6 @@ +项目要求:以 任何语言 实现, 从 https://weather.com/ 抓取今天广州的天气, 并输出到命令行上. + +项目开发:用python3 爬取 https://weather.com/zh-CN/weather/today/l/CHXX0037:1:CH 中国天气预报网的页面信息 + CHXX0037 是广州的CH代码,定位到广州的今天天气信息页面,使BeautifulSoup进行的信息爬取 + +项目说明:此项目能够显示今天天气情况,包括体感温度,最高温/最低温 ,紫外线指数,和近几天的大体天气情况等信息 \ No newline at end of file From 593da750f31d86d46b8452b31b9426817f11d9a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=91=E9=AD=85=E9=AD=8D=E9=AD=89?= <625310581@qq.com> Date: Wed, 26 Apr 2017 07:23:53 +0800 Subject: [PATCH 2/5] Update .hello-weather.sh --- .hello-weather.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.hello-weather.sh b/.hello-weather.sh index 136d403..c77c813 100644 --- a/.hello-weather.sh +++ b/.hello-weather.sh @@ -1,2 +1,2 @@ -#!/bin/bash -python hello-weather.py \ No newline at end of file +#!/bin/sh +python hello-weather.py From fe81ceb37e789fdb968ba9d1f91a8367bac59968 Mon Sep 17 00:00:00 2001 From: peisong Date: Wed, 26 Apr 2017 10:43:18 +0800 Subject: [PATCH 3/5] Update .hello-weather.sh --- .hello-weather.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.hello-weather.sh b/.hello-weather.sh index c77c813..79b982b 100644 --- a/.hello-weather.sh +++ b/.hello-weather.sh @@ -1,2 +1,2 @@ #!/bin/sh -python hello-weather.py +python3 hello-weather.py From 638c358728a7a9976a0af910e658a3d3cf4b0cdf Mon Sep 17 00:00:00 2001 From: peisong Date: Thu, 27 Apr 2017 16:46:43 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E8=BF=99=E5=BA=94=E8=AF=A5=E4=B8=8D?= =?UTF-8?q?=E7=AE=97=E6=8A=95=E6=AF=92=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 鑹皯 --- .hello-weather.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.hello-weather.sh b/.hello-weather.sh index 79b982b..76ee271 100644 --- a/.hello-weather.sh +++ b/.hello-weather.sh @@ -1,2 +1,8 @@ -#!/bin/sh -python3 hello-weather.py +#!/bin/bash +Python=$(which python3) + +if [ ! -x "${Python}" ];then +echo "闇瑕乸ython3鐜" +else +python3 aaa.py +fi From 40adf339dd99b1763951d02f9b000c32e802e7a8 Mon Sep 17 00:00:00 2001 From: peisong Date: Thu, 27 Apr 2017 16:47:44 +0800 Subject: [PATCH 5/5] Update .hello-weather.sh --- .hello-weather.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.hello-weather.sh b/.hello-weather.sh index 76ee271..c63beb6 100644 --- a/.hello-weather.sh +++ b/.hello-weather.sh @@ -4,5 +4,5 @@ Python=$(which python3) if [ ! -x "${Python}" ];then echo "闇瑕乸ython3鐜" else -python3 aaa.py +python3 hello-weather.py fi