suivi: fix usps
This commit is contained in:
parent
f17f8b9dfa
commit
904ad72316
@ -132,7 +132,7 @@ def get_usps_info(usps_id):
|
|||||||
|
|
||||||
usps_data = getURLContent(usps_parcelurl)
|
usps_data = getURLContent(usps_parcelurl)
|
||||||
soup = BeautifulSoup(usps_data)
|
soup = BeautifulSoup(usps_data)
|
||||||
if (soup.find(class_="tracking_history")
|
if (soup.find(id="trackingHistory_1")
|
||||||
and soup.find(class_="tracking_history").find(class_="row_notification")
|
and soup.find(class_="tracking_history").find(class_="row_notification")
|
||||||
and soup.find(class_="tracking_history").find(class_="row_top").find_all("td")):
|
and soup.find(class_="tracking_history").find(class_="row_top").find_all("td")):
|
||||||
notification = soup.find(class_="tracking_history").find(class_="row_notification").text.strip()
|
notification = soup.find(class_="tracking_history").find(class_="row_notification").text.strip()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user