def generate(): """Generate a wiki article with all books. """ cat = Category("Books") books = scrape_all() rest = cat.sort_books(books) ret = cat.print_it() ret += "= Misc =\n" for book in rest: ret += book.print_it() return ret