samedi 6 novembre 2021

How can i put alt texts into a list and then use random() to print out a random alt text

i am trying to web scrape a website by using BeautifulSoup. This website contains a bunch of street names from a video game. The street names are being stored in img alt tags, is there any type of way to not only print those names out, but also put them into a list, then use the random library to print a random name out?




Aucun commentaire:

Enregistrer un commentaire