Cannot select item names. Where is the inaccuracy in the code?
#!/usr/bin/env python import urllib from bs4 import BeautifulSoup def get_html(url): response = urllib.urlopen(url) return response.read() def parse(html): soup = BeautifulSoup(html) table = soup.find('form', class_='box-katalog') projects = [] for row in table.find_all('h2'): cols = row.find_all('h2') projects.append({ 'title': cols[0].a.alt }) for projects in projects: print(projects) def main(): print(get_html('http://www.elix-c.ru/')) if __name__ == '__main__': main()