The table indeed exists in the file (Did this by open the file, F12,find the table code):
import sys
from bs4 import BeautifulSoup
with open(r'c:\blabla\filepath.html', 'r') as f:
webpage = f.read()
print BeautifulSoup(webpage).findAll('table')
print BeautifulSoup(webpage).findAll('html')
<BR>
</P>
<TABLE WIDTH=533 BORDER=1 BORDERCOLOR="#000000" CELLPADDING=0 CELLSPACING=0>
<COL WIDTH=51>
<COL WIDTH=172>
<COL WIDTH=43>
<COL WIDTH=265>
<TR VALIGN=TOP>
import sys
import urllib2
from bs4 import BeautifulSoup
import re
webpage = open(r'd:\samplefile.html', 'r').read()
soup = BeautifulSoup(webpage)
print re.findall("TABLE",webpage) #works, prints ['TABLE','TABLE']
print soup.findAll("TABLE") # prints an empty list []
Any clue what could be wrong here? Thanks!