1
對Twitter的某些編程網址進行編碼,但由於某些原因,我的網址給了我500個錯誤。爲什麼我的網址編碼不起作用?
任何人都可以注意到這個問題嗎?我試圖看看是否有什麼我不注意或產生這個錯誤。
下面的代碼:
response = urllib2.urlopen("http://search.twitter.com/search.json?q=" + urlinfo + "&rpp=1&page=1")
而這裏的最終輸出:
http://search.twitter.com/search.json?q=feel%2BOR%2Bi+feel%2BOR%2Bim+feeling%2BOR%2Bi%27m+feeling%2BOR%2Bi+am+feeling%2BOR%2Bi+dont+feel%2BOR%2Bi%27m%2BOR%2Bi+am%2BOR%2Bim%2BOR%2Bmakes+me%2BOR%2Bmakes+me+feel%2BOR%2Bmade+me%2BOR%2Bmade+me+feel%2BOR%2Bmaking+me%2BOR%2Bmaking+me+feel%2BOR%2Bmy+mood%2BOR%2Bi%27m+so%2BOR%2Bim+so%2BOR%2Bi+don%27t+feel&rpp=1&page=1