web scrapping - POST and auto-login
Max Erickson
maxerickson at gmail.com
Mon Sep 19 23:56:52 EDT 2005
"james <at> hal-pc.org" wrote in
news:432f85db$0$10627$a726171b at news.hal-pc.org:
> Max Erickson wrote:
>>>>the entire 26 character string from site A, but [1] how do i
>>>>crop it to 10 characters.
>>
>> strings are slicable:
>
> The only reason i've gotten this far is a basic understanding of
> syntax and programming in general :)
> care to enlighten me a little on how to do that?
I did. If you have some text in VARIABLE, and do something like:
substring=VARIABLE[:10], substring will be the first 10 characters of
VARIABLE.
More information about the Python-list
mailing list