с помощью Python BeautifulSoup
Код на данный момент:
Код: Выделить всё
from bs4 import BeautifulSoup
from urllib.request import urlopen
content = urlopen("http://www.forexfactory.com/calendar.php?day=nov18.2016").read()
soup = BeautifulSoup(content, 'html.parser')
tables = soup.findAll("table")
for table in tables:
if table.findParent("table") is None:
print(table)
Подробнее здесь: https://stackoverflow.com/questions/406 ... -a-website