A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://svn.python.org/projects/python/branches/py3k-urllib/Demo/scripts/newslist.py below:

.html containing links # to those groups beginning with . def createpage(root, tree, p): filename = os.path.join(pagedir, root+'.html') if root == rootpage: detail = '' else: detail = ' under ' + root with open(filename, 'w') as f: # f.write('Content-Type: text/html\n') f.write('\n\n') f.write(' Newsgroups available%s\n' % detail) f.write('\n\n') f.write(' Newsgroups available%s\n' % detail) f.write(' Back to top level

\n' % (httppref, rootpage)) printtree(f, tree, 0, p) f.write('\n

') f.write("This page automatically created by 'newslist' v. %s." % rcsrev) f.write(time.ctime(time.time()) + '\n') f.write('\n\n') # Printtree prints the groups as a bulleted list. Groups with # more than subgroups will be put on a separate page. # Other sets of subgroups are just indented. def printtree(f, tree, indent, p): l = len(tree) if l > sublistsize and indent > 0: # Create a new page and a link to it f.write('

  • ' % (httppref, p[1:])) f.write(p[1:] + '.*') f.write('%s\n' % pagelinkicon) createpage(p[1:], tree, p) return kl = sorted(tree.keys()) if l > 1: if indent > 0: # Create a sub-list f.write('
  • %s\n

  • RetroSearch is an open source project built by @garambo | Open a GitHub Issue

    Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

    HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4