I am trying to get the text under tag in this website, below is the source code from that website, I want to access the number 110817 in the tag. Here is my code,however it shows 'NoneType' object has no attribute 'a' Please help me with this issue!
import requests
request_html = requests.get("https://www.ibon.com.tw/retail_inquiry.aspx#gsc.tab=0")
from bs4 import BeautifulSoup
soup = BeautifulSoup(request_html.text, "html.parser")
for i in soup.find_all(class_='banner'):
print(i.find('a').text)
Aucun commentaire:
Enregistrer un commentaire