Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 13 of 13
Search took 0.01 seconds.
Search: Posts Made By: Steveire
Forum: Python Mar 6th, 2006, 11:46 AM
Replies: 2
Views: 176
Posted By Steveire
Perfect. Thanks.

Perfect. Thanks.
Forum: Python Mar 4th, 2006, 9:50 AM
Replies: 2
Views: 176
Posted By Steveire
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
Posted By Steveire
Bingo. Thanks very.

Bingo. Thanks very.
Forum: Python Jan 27th, 2006, 1:19 PM
Replies: 16
Views: 776
Posted By Steveire
Thanks both, but it's not in the form I'd like,...

Thanks both, but it's not in the form I'd like, ie '31 January 2006', '1 Febraury 2006'. Is that as simple? I checked some of the documentation on ptyhon.org, but didn't immediately find anything.
Forum: Python Jan 26th, 2006, 5:30 PM
Replies: 16
Views: 776
Posted By Steveire
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
Posted By Steveire
Looks like I spoke too soon. The above code works...

Looks like I spoke too soon. The above code works only for new pages. I tried submitting the page again, but with "Another test edit....\n" in the wpTextbox1 field, and got that same edit conflict...
Forum: Python Jan 9th, 2006, 8:08 AM
Replies: 16
Views: 1,000
Posted By Steveire
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
Posted By Steveire
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
Posted By Steveire
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
Posted By Steveire
I think I tried that and some other variations. I...

I think I tried that and some other variations. I can't remember.


That's a nice extension, thanks, but I don't think it shows anything that isn't in the source page. The headers tab in the view...
Forum: Python Jan 3rd, 2006, 10:44 AM
Replies: 16
Views: 1,000
Posted By Steveire
30 minutes isn't a long time to be able to edit...

30 minutes isn't a long time to be able to edit posts for, but when I wrote this:

I made a link to the wrong location. The link should point to...
Forum: Python Jan 2nd, 2006, 8:35 PM
Replies: 16
Views: 1,000
Posted By Steveire
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
Posted By Steveire
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...
Showing results 1 to 13 of 13

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:08 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC