python+urllib+爬蟲的有道翻譯

簡單的post請求爬蟲 我們需要模擬好請求頭: 做好post請求的form數據: 輸入關鍵字: 最後測試: 代碼: # coding=utf-8 import urllib import urllib2 # # http://fanyi.youdao.com/ url = 'http://fanyi.youdao.com/translate?smartresult=dict&smartre
相關文章
相關標籤/搜索