1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | if content.find("新竹縣")!=-1: res+="新竹縣天氣:" url = weather_url+"Hsinchu County" elif content.find("鹿谷")!=-1: res += "南投鹿谷天氣:" url = weather_url + "Lugu" elif content.find("八卦山")!=-1: res += "彰化八卦山天氣:" url = weather_url + "Longshanli" elif content.find("台北市:")!=-1: res+="台北市天氣:" url = weather_url+"Taipei City" elif content.find("雲林")!=-1: res+="雲林天氣:" url = weather_url+"Yunlin" elif content.find("斗六")!=-1: res+="斗六天氣:" url = weather_url+"Douliu" elif content.find("玉井")!=-1: res += "台南玉井天氣:" url = weather_url + "Yujing" elif content.find("南屯")!=-1: res += "台中南屯天氣:" url = weather_url + "Zhigaozhuang" elif content.find("旗山")!=-1: res += "高雄旗山天氣:" url = weather_url + "Chishan" elif content.find("桶盤淺")!=-1: res += "台南桶盤淺天氣:" url = weather_url + "Tongpanqian" elif content.find("頭重")!=-1: res += "竹東頭重天氣:" url = weather_url + "Touchongbu" elif content.find("頂角潭")!=-1: res += "台中頂角潭天氣:" url = weather_url + "Dingjiaotan" elif content.find("桃園")!=-1: res += "桃園天氣:" url = weather_url + "Taoyuan" elif content.find("台東")!=-1: res += "台東天氣:" url = weather_url + "Taitung" elif content.find("太保")!=-1: res += "嘉義太保天氣:" url = weather_url + "Taibao" elif content.find("台南")!=-1: res += "台南天氣:" url = weather_url + "Tainan" elif content.find("豐原")!=-1: res += "台中豐原天氣:" url = weather_url + "Fengyuan" elif content.find("台中")!=-1: res += "台中天氣:" url = weather_url + "Taichung" elif content.find("大溪")!=-1: res += "桃園大溪天氣:" url = weather_url + "Daxi" elif content.find("五城")!=-1: res += "南投五城天氣:" url = weather_url + "Wucheng" elif content.find("宋屋")!=-1: res += "桃園宋屋天氣:" url = weather_url + "Songwu" elif content.find("四季")!=-1: res += "宜蘭四季天氣:" url = weather_url + "Siji" elif content.find("水源地")!=-1: res += "台北水源地天氣:" url = weather_url + "Shuiyuandi" elif content.find("十八張")!=-1: res += "彰化十八張天氣:" url = weather_url + "Shibazhang" elif content.find("冬山")!=-1: res += "宜蘭冬山天氣:" url = weather_url + "Dongshan" elif content.find("板橋")!=-1: res += "板橋天氣:" url = weather_url + "Banqiao" elif content.find("埔里")!=-1: res += "南投埔里天氣:" url = weather_url + "Puli" elif content.find("坡腳")!=-1: res += "桃園坡腳天氣:" url = weather_url + "Pojiao" elif content.find("屏東")!=-1: res += "屏東天氣:" url = weather_url + "Pingtung" elif content.find("馬公")!=-1: res += "澎湖馬公天氣:" url = weather_url + "Magong" elif content.find("南投")!=-1: res += "南投天氣:" url = weather_url + "Nantou" elif content.find("苗栗")!=-1: res += "苗栗天氣:" url = weather_url + "Miaoli" elif content.find("鹿港")!=-1: res += "鹿港天氣:" url = weather_url + "Lugang" elif content.find("林德富")!=-1: res += "高雄林德富天氣:" url = weather_url + "Lindefu" elif content.find("林德富")!=-1: res += "高雄林德富天氣:" url = weather_url + "Lindefu" elif content.find("澎湖")!=-1: res += "澎湖天氣:" url = weather_url + "Penghu County" elif content.find("古亭")!=-1: res += "台北古亭天氣:" url = weather_url + "Guting" elif content.find("鳳山")!=-1: res += "高雄鳳山天氣:" url = weather_url + "Fengshan" elif content.find("高雄")!=-1: res += "高雄天氣:" url = weather_url + "Kaohsiung" elif content.find("宜蘭")!=-1: res += "宜蘭天氣:" url = weather_url + "Yilan" elif content.find("花蓮市")!=-1: res += "花蓮市天氣:" url = weather_url + "Hualien City" elif content.find("花蓮")!=-1: res += "花蓮天氣:" url = weather_url + "Hualien" elif content.find("席果山")!=-1: res += "金門席果山天氣:" url = weather_url + "Xiguoshan" elif content.find("下內埔")!=-1: res += "台北下內埔天氣:" url = weather_url + "Xianeibu" elif content.find("恆春")!=-1: res += "屏東恆春天氣:" url = weather_url + "Hengchun" elif content.find("過溪子")!=-1: res += "桃園過溪子天氣:" url = weather_url + "Guoxizi" elif content.find("竹子林")!=-1: res += "台北竹子林天氣:" url = weather_url + "Zhuzilin" elif content.find("竹北")!=-1: res += "新竹縣竹北天氣:" url = weather_url + "Zhubei" elif content.find("竹北")!=-1: res += "新竹縣竹北天氣:" url = weather_url + "Zhubei" elif content.find("中寮")!=-1: res += "南投中寮天氣:" url = weather_url + "Zhongliao" elif content.find("崇蘭")!=-1: res += "屏東崇蘭天氣:" url = weather_url + "Chonglan" elif content.find("金城")!=-1: res += "金門金城天氣:" url = weather_url + "Jincheng" elif content.find("基隆")!=-1: res += "基隆天氣:" url = weather_url + "Keelung" elif content.find("赤崁樓")!=-1: res += "台南赤崁樓天氣:" url = weather_url + "Chikanlou" elif content.find("佳裡")!=-1: res += "台南佳裡天氣:" url = weather_url + "Jiali" elif content.find("佳裡")!=-1: res += "台南佳裡天氣:" url = weather_url + "Jiali" elif content.find("彰化")!=-1: res += "彰化天氣:" url = weather_url + "Chang-hua" else : res+="新竹市天氣:" url = weather_url+"Hsinchu" |
Direct link: https://paste.plurk.com/show/SAPq8LutQ1EA8hJSxDqI