2016-09-06 46 views
0
的所有代碼

我的代碼是我使用beautifulsoup在Python 3,但「html.parser」不給我網站

import urllib 
import urllib.request 

from bs4 import BeautifulSoup  
fed = "https://www.fedex.com/apps/fedextrack/?action=track&tracknumbers=870915037012296&cntry_code=us&wsch=true" 

show = urllib.request.urlopen(fed) 
soup = BeautifulSoup(show,"html.parser") 

print(soup) 

我試圖獲取從聯邦快遞和status.But這個收貨地址代碼沒有獲取我的URL的所有數據

+0

你期待哪個代碼,缺少什麼? – Querenker

+0

我希望代碼具有地址,狀態,發貨日期和交付日期 –

回答

0

爲什麼不直接使用Fedex SOAP API。有一個Python包裝 - python-fedex

示例如何跟蹤包裹可以發現here

+0

我不理解fedex.py的工作。你能否給我舉個跟蹤號碼的例子,並且請告訴我哪些庫需要安裝來跟蹤fedex包 –

相關問題