我試圖讓我的形象在線託管和我使用的python如何發送從蟒蛇的請求後響應,圖像
import requests
url = 'http://imgup.net/'
data = {'image[image][]':'http://www.webhost-resources.com/wp-content/uploads/2015/01/dedicated-hosting-server.jpg'}
r = requests.post(url, files=data)
我不能夠從獲得託管的圖片的反應網址響應 。 請幫忙!
你得到了什麼錯誤? – Arman
r.text給我同樣的html頁面,它不包含來自服務器端的post響應! –
如果你嘗試donwload一個圖像使用[beautifulSoup](http://stackoverflow.com/questions/18497840/beautifulsoup-how-to-open-images-and-download-them) – Arman