a= []
for item in soup2.findAll("div", class_='x'):
where_to_watch = item.find_all('b')
watch_at.append(x)
dataFrame = pd.DataFrame(data = a)
dataFrame.to_excel('x.xlsx')
print(dataFrame)
Hello Guys How can i add "text" when the value is none? or maybe add NAN value...
watch_atlook like?where-to_watchis None then it will be added to the Listwatch_atas None and then will appear in the DataFrame asNaN. So where is the problem?