Forum: Python
Mar 6th, 2006, 11:46 AM
|
|
Replies: 2
Views: 176
|
Forum: Python
Mar 4th, 2006, 9:50 AM
|
|
Replies: 2
Views: 176
string split_once() function?
Hi,
Is there some easy way to split a string by the first occurance of a certain character to make two strings?
If I use
sentence = "What is your quest?"
partOne, partTwo = sentence.split_once('...
|
Forum: Python
Jan 29th, 2006, 8:08 AM
|
|
Replies: 16
Views: 776
|
Forum: Python
Jan 27th, 2006, 1:19 PM
|
|
Replies: 16
Views: 776
|
Forum: Python
Jan 26th, 2006, 5:30 PM
|
|
Replies: 16
Views: 776
I can print 'today', but can I print 'yesterday'?
import time
today = time.strftime("%d %B %Y")
yesterday = str(int(time.strftime("%d"))-1) + time.strftime(" %B %Y")
print today, yesterday
Will work only if 'today' is not the first day of the...
|
Forum: Python
Jan 15th, 2006, 9:24 AM
|
|
Replies: 16
Views: 1,000
|
Forum: Python
Jan 9th, 2006, 8:08 AM
|
|
Replies: 16
Views: 1,000
Success
Many thanks to both of you for all of your help. My intention was not to operate a bot on Wikipedia, but other wikimedia powered projects. The code posted above worked for a wiki edit which you can...
|
Forum: Python
Jan 6th, 2006, 10:18 AM
|
|
Replies: 16
Views: 1,000
Thanks very much for that. I've been playing...
Thanks very much for that. I've been playing around with it for a while. No progress yet, but I've tried a few things.
First off, turning on the listener, and connecting to local host with...
|
Forum: Python
Jan 5th, 2006, 12:11 PM
|
|
Replies: 16
Views: 1,000
Yeah, that's a good tip. I was thinking of...
Yeah, that's a good tip. I was thinking of messing around with the user agent info, and some other stuff, but that might have to wait til the weekend.
This looks like an ingenious way to solve the...
|
Forum: Python
Jan 3rd, 2006, 8:30 PM
|
|
Replies: 16
Views: 1,000
|
Forum: Python
Jan 3rd, 2006, 10:44 AM
|
|
Replies: 16
Views: 1,000
|
Forum: Python
Jan 2nd, 2006, 8:35 PM
|
|
Replies: 16
Views: 1,000
Cheers. Having a problem to solve is good...
Cheers. Having a problem to solve is good motivation for learning a bit about how the internet works.
Yep, I noticed that too, but forgot to change it when I made my post, because when I tried it...
|
Forum: Python
Jan 2nd, 2006, 10:39 AM
|
|
Replies: 16
Views: 1,000
Newbie to python: trying to submit forms
I'm trying to automate some form submission on a mediawiki site. I've never done anything like this before, and I don't know anything about internet related programming except what I've learned...
|