[Tutor] Get image url
Alan Gauld
alan.gauld at yahoo.co.uk
Fri Aug 7 03:43:20 EDT 2020
Please always use ReplyAll to include the list
On 07/08/2020 00:53, Andr?? Pinto wrote:
> I have the image tag and I need to find out what its url is ...
Are you using BeautifulSoup?
Did you check the tutorial link I gave?
It should be as simple as:
url = my_imgtag['src']
If you are using a different parser it will be different code,
you need to tell us more. Ideally, share some code.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list