web scrapping - POST and auto-login
maxerickson at gmail.com
Tue Sep 20 05:56:52 CEST 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  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
More information about the Python-list