On Thu, Jul 10, 2014 at 7:59 PM, Zarey Chang <[email protected]> wrote:

> well, that urllib seems could not work fine like content of you print.
>
> >>> html1[:16]
>
> Traceback (most recent call last):
>
>   File "<stdin>", line 1, in <module>
>
> AttributeError: addinfourl instance has no attribute '__getitem__'
>
> Doesn't metter, it should be study the usage with urllib.
>
>
Sorry, I pasted the wrong command, try this:

>>> html1 = urllib.urlopen("http://1.yunzlog.appspot.com/";).read()
>>> html2 = urllib.urlopen("http://2.yunzlog.appspot.com/";).read()
>>> html1[:16]
>>> html2[:16]

However you're saving the file make sure you're not saving a Byte Order
Mark / BOM. This is very likely to be the cause of any weird spacing on the
page.

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pocoo-libs.
For more options, visit https://groups.google.com/d/optout.

Reply via email to