I have a twill script that I am trying to use to get the html code from a web page and output to a text file. The problem I have is that all the code does not show up in my text file. The actual parts I need are left out. When I go to the web page manually and do "View, Page Source" I can see all the information. Here is a sample of the script I am using (website, username and password have been changed.
import twill, string, os
import csv
import urllib2
from twill import get_browser
b = get_browser()
from twill.commands import *
b.go ("http://www.test.com/login")
username="user"
password="password"
formvalue ("form1", "name", "$username")
formvalue ("form1", "password", "$password")
b.submit
b.go ("http://www.test.com/testitem")
redirect_output ("c:\testhtml.txt")
html=b.get_html()
html
Does anyone know what the problem is?