i want extract the content of a value attribute, but i have an error in my code this is a parto of my code:
link_capitolo_scelto = link_chapter_array[scelta_capitolo]
chapter_url = simple_url + link_capitolo_scelto
r3 = requests.get(chapter_url)
soup3 = BeautifulSoup(r3.content, 'html.parser')
lista_pagine = soup3.find(class_='top-title')
link_pagine_array = []
for element in lista_pagine:
pageSelect = lista_pagine.find(id='pageSelect')
link_pagine_array.append(pageSelect)
# print(link_pagine_array)
for element in link_pagine_array:
element = element.get('value')
print(element)
and this is my output: None None None None None None None None None None None the html tag is:
8 how can i solve it?
Aucun commentaire:
Enregistrer un commentaire