I'm new to coding and web-scraping,teaching myself with videos and tutorials, I'm attempting to retrieve the picture of a sudoku from an HTML with a Python notebook. i get all the way inside the tags to where the png is, but I don't know what to call to return it as a png in Python
I'm using Python 3.6.5
from bs4 import BeautifulSoup
from urllib.request import Request, urlopen
req = Request('http://dailysudoku.com/sudoku/archive/2019/08/2019-08-28.shtml', headers={'User-Agent': 'Mozilla/5.0'})
webpage = urlopen(req).read()
plain_text= BeautifulSoup(webpage, 'html.parser')
table= plain_text.find('table', id='mainLayout')
for column in (table.find_all('td',id="centerTd")):
for column in(column.find('center')):
print(column)
That's as far as I can get, which shows that one of the columns is
< img alt="" src="/sudoku/png/2019/08/2019-08-28.png"/>
and i attempted to get it by doing
column.find_all('img',src="/sudoku/png/2019/08/2019-08-28.png")
but img is non iterable.
Any help is much appreciated, Thanks!