I'm trying to get abbreviations of US states but this code:
from bs4 import BeautifulSoup
from urllib.request import urlopen
url='https://simple.wikipedia.org/wiki/List_of_U.S._states'
web=urlopen(url)
source=BeautifulSoup(web, 'html.parser')
table=source.find('table', {'class': 'wikitable sortable jquery-tablesorter'})
abbs=table.find_all('b')
print(abbs.get_text())
returns AttributeError: 'Nonetype' object has no attribute 'find_all'. What's the problem of my code?
source.findis returningNone, which has no attributefind_all