I'm trying to access the XML version of my Tivo now playing list with
python. It uses auth digest HTTP authentication. I could really use
some help!
I'm able to get this page using curl:
curl --dump-header tivoHeaders --insecure --anyauth --user tivo:808
"https://192.168.1.102/TiVoConnect?C
Replying to myself... this is getting to be a habit.
On Sun, 17 Jul 2005 15:08:12 +1000, Steven D'Aprano wrote:
> I hope that makes sense to you.
That wasn't meant as a snide little dig at Peter, and I'm sorry if anyone
reads it that way. I found myself struggling to explain simply the
different
On Sat, 16 Jul 2005 19:01:50 -0400, Peter Hansen wrote:
> George Sakkis wrote:
>> "Bengt Richter" <[EMAIL PROTECTED]> wrote:
>>> >>> identity = ''.join([chr(i) for i in xrange(256)])
>>
>> Or equivalently:
>identity = string.maketrans('','')
>
> Wow! That's handy, not to mention undocumente
On Sat, 16 Jul 2005 16:42:58 -0400, Peter Hansen wrote:
> Steven D'Aprano wrote:
>> On Sat, 16 Jul 2005 10:25:29 -0400, Peter Hansen wrote:
>>>Bengt Richter wrote:
>>>
>>> identity = ''.join([chr(i) for i in xrange(256)])
>>>
>>>And note that with Python 2.4, in each case the above square bra
"Peter Hansen" <[EMAIL PROTECTED]> wrote:
> George Sakkis wrote:
> > "Peter Hansen" <[EMAIL PROTECTED]> wrote:
> Where did you learn that, George?
> >
> > Actually I first read about this in the Cookbook; there are two or three
> > recipes related to string.translate. As for string.maketrans
from os import system
system ("start http://www.python.org/";)
--
http://mail.python.org/mailman/listinfo/python-list
George Sakkis wrote:
> "Peter Hansen" <[EMAIL PROTECTED]> wrote:
Where did you learn that, George?
>
> Actually I first read about this in the Cookbook; there are two or three
> recipes related to string.translate. As for string.maketrans, it
> doesn't do anything special for empty string
On 7/16/05, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Sat, 16 Jul 2005 19:54:31 -0400, Bill Mill <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>
> > The FAT dirs are mounted with the following options:
> > defaults,user,umask=000 . I'm not sure what you mean by the
oh ok cool. I'll ask them for some advice. thanks!
--
http://mail.python.org/mailman/listinfo/python-list
"macaronikazoo" <[EMAIL PROTECTED]> writes:
> ok, so what can I do to get something uploaded? how can I upload
> something via http?
Depends on your web host. At worst, use a server side script to
accept the upload. You're asking basic webmaster-type questions.
This really isn't the best place
On Sun, 2005-07-17 at 01:30 +0200, Johannes Findeisen wrote:
> My recommendation:
>
> Use Python! You will love me in some years because i have said this.
> When using Access you are binding your application to Microsoft. You
> need a runtime version of Access when distributing the application to
Pyparsing includes a sample program for extracting URLs from web pages.
You should be able to adapt it to this problem.
Download pyparsing at http://pyparsing.sourceforge.net
-- Paul
--
http://mail.python.org/mailman/listinfo/python-list
ok, so what can I do to get something uploaded? how can I upload
something via http?
--
http://mail.python.org/mailman/listinfo/python-list
"macaronikazoo" <[EMAIL PROTECTED]> writes:
> well I want a script to upload something automatically, so i need a
> python script to do that for me. my hoster has ssl enabled on their
> server and I have generated a key. but now I need to know how to
> upload something using ssl to the server. h
well I want a script to upload something automatically, so i need a
python script to do that for me. my hoster has ssl enabled on their
server and I have generated a key. but now I need to know how to
upload something using ssl to the server. how to I ftp something to
the server using ssl?
thank
Bill Mill:
> Definitely not mounted with short file names, and there aren't any
> non-ASCIIs in the file names; in both cases I imagine that the file
> wouldn't run at all. In this case, however, the file does run, and
> open a socket, it just can't seem to receive connections on it. I have
> trie
"Peter Hansen" <[EMAIL PROTECTED]> wrote:
> Jp Calderone wrote:
> > On Sat, 16 Jul 2005 19:01:50 -0400, Peter Hansen <[EMAIL PROTECTED]> wrote:
> >> George Sakkis wrote:
> >> identity = string.maketrans('','')
> >>
> >> Wow! That's handy, not to mention undocumented. (At least in the
> >> st
Jp Calderone wrote:
> On Sat, 16 Jul 2005 19:01:50 -0400, Peter Hansen <[EMAIL PROTECTED]> wrote:
>> George Sakkis wrote:
>> identity = string.maketrans('','')
>>
>> Wow! That's handy, not to mention undocumented. (At least in the
>> string module docs.) Where did you learn that, George?
>>
On Sat, 16 Jul 2005, George Sakkis wrote:
> "Tom Anderson" <[EMAIL PROTECTED]> wrote:
>
>> On Sat, 16 Jul 2005, Joseph Garvin wrote:
>>
>>> Someone correct me if I'm wrong -- but isn't this the Shortest Path
>>> problem?
>>
>> Dang! I was just about to point that out.
>>
>> [snipped]
>>
>> But ye
On 7/16/05, Neil Hodgson <[EMAIL PROTECTED]> wrote:
> Bill Mill:
>
> > ... a FAT partition for data as a dmz which both linux and NT can
> > access ...
> > Yesterday, I downloaded the new release of cherrypy, and stuck it on
> > the dmz drive. ...
> > Eventually, after thinking it's a hosts file
samuels <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> I am a total python newbie, and I need help writing a script.
>
> This is what I want to do:
>
> There is a list of links at http://www.rentalhq.com/fulllist.asp. Each
> link goes to a page like,
> http://www.rentalhq.com/store.asp?id=907%2F27
Bill Mill:
> ... a FAT partition for data as a dmz which both linux and NT can
> access ...
> Yesterday, I downloaded the new release of cherrypy, and stuck it on
> the dmz drive. ...
> Eventually, after thinking it's a hosts file problem, or a firewall
> problem, I figure out that if I move it
On Fri, 2005-07-15 at 23:19 -0400, William Lodge wrote:
> I'm at a loss on how to compare Python vs. Access VBA for a database
> project. I'm estimating 20 tables and several forms and reports. Some of the
> tables could grow to many thousands of rows w/i a year or so. The app would
> be resident o
On Sat, 16 Jul 2005 19:01:50 -0400, Peter Hansen <[EMAIL PROTECTED]> wrote:
>George Sakkis wrote:
>> "Bengt Richter" <[EMAIL PROTECTED]> wrote:
>>> >>> identity = ''.join([chr(i) for i in xrange(256)])
>>
>> Or equivalently:
>identity = string.maketrans('','')
>
>Wow! That's handy, not to ment
George Sakkis wrote:
> "Bengt Richter" <[EMAIL PROTECTED]> wrote:
>> >>> identity = ''.join([chr(i) for i in xrange(256)])
>
> Or equivalently:
identity = string.maketrans('','')
Wow! That's handy, not to mention undocumented. (At least in the
string module docs.) Where did you learn that
"Bengt Richter" <[EMAIL PROTECTED]> wrote:
> >>> identity = ''.join([chr(i) for i in xrange(256)])
> >>> unprintable = ''.join([c for c in identity if c not in string.printable])
Or equivalently:
>>> identity = string.maketrans('','')
>>> unprintable = identity.translate(identity, string.print
On Sat, 2005-07-16 at 03:26 +0200, JZ wrote:
> http://www.djangoproject.com/
Hey, that is crazy shit!
I really like the concept and will give it a try ASAP! I have searched
for something like this some month ago but ended my search at ROR. I am
not a python hacker but i know how to use it and i h
"Terry Reedy" <[EMAIL PROTECTED]> wrote:
> "Tom Anderson" <[EMAIL PROTECTED]> wrote:
> > I can't immediately see any properties of this network that could be
> > exploited, but that doesn't mean there aren't any.
>
> No it doesn't. The challenge is to find a property that saves more time,
> acros
On Sat, 16 Jul 2005 10:25:29 -0400, Peter Hansen <[EMAIL PROTECTED]> wrote:
>Bengt Richter wrote:
>> >>> identity = ''.join([chr(i) for i in xrange(256)])
>> >>> unprintable = ''.join([c for c in identity if c not in
>> string.printable])
>
>And note that with Python 2.4, in each case the above
Hi there,
I'm really pleased to announce the first public release of MyNewspaper.
MyNewspaper is a personal RSS Aggregator and Reader, licensed under GPL.
Why? As everybody says, I couldn't find any which fulfills all my
requirements. In fact I used liferea and was pretty happy with it, but
it e
On 16 Jul 2005 02:31:28 -0700, "Raymond Hettinger" <[EMAIL PROTECTED]> wrote:
>[Bengt Richter]
>> how about (untested)
>>
>> def get_options(opts):
>> """Return True or False if an option is set or not"""
>> return [1 for val in vars(opts).values() if val is not None] and True
>> or Fa
Morning. I've been running into an error message pertaining to SSL
that I don't understand, and I was hoping someone had some insight.
Gmail provides POP access over SSL on port 587, so I tried to use
poplib.POP_SSL, with the following results:
%python
Python 2.4.1 (#1, May 16 2005, 15:19:29)
[G
Steven D'Aprano wrote:
> On Sat, 16 Jul 2005 10:25:29 -0400, Peter Hansen wrote:
>>Bengt Richter wrote:
>>
>>> >>> identity = ''.join([chr(i) for i in xrange(256)])
>>
>>And note that with Python 2.4, in each case the above square brackets
>>are unnecessary (though harmless), because of the arriva
By now, you have probably found an IDE that gives you satisfactory
debugging.
I think your original problem was trying to use an emacs shell (M-x shell)
to run Python interpreter.
But the emacs Python mode works a whole better than Python in a dumb
terminal.
Have you tried the following?
-- open P
I can't wait to try this out. We'll see how it stacks up next to ROR.
"JZ" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> http://www.djangoproject.com/
>
> --
> JZ
--
http://mail.python.org/mailman/listinfo/python-list
"J.Bijsterbosch" <[EMAIL PROTECTED]> writes:
> Hmm, what you call special treatment comes from pythons deep underlying C
> and C++ language heietidge I presume. A backslash in a C or C++ string means
> the following character is a so called escape character, like \n represents
> a newline and \r a
Hello All,
I am a total python newbie, and I need help writing a script.
This is what I want to do:
There is a list of links at http://www.rentalhq.com/fulllist.asp. Each
link goes to a page like,
http://www.rentalhq.com/store.asp?id=907%2F272%2D4425, that contains a
company name, address, phon
"Tom Anderson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sat, 16 Jul 2005, Joseph Garvin wrote:
>
>> Someone correct me if I'm wrong -- but isn't this the Shortest Path
>> problem?
>
> Dang! I was just about to point that out.
One twist is that it is not the shortest path
"macaronikazoo" <[EMAIL PROTECTED]> writes:
> i'm after a way to securely upload a file to a web server and I'm
> wondering how to go about it. basically i want to upload a small text
> file to my hosted webspace once every hour or so. because it will be
> happening once an hour, i want to make s
i want to get a small certificate or diploma in python.
it should be online cuz i live in pakistan and wont have teast centers
near me.
it should be low cost as i am not rich.
and hopefully it would be something like a a begginer certification cuz
i am new to python.
--
http://mail.python.org/mai
curl and wget are the most robust ways to do this
http://cool.haxx.se/mailman/listinfo/curl-and-python
http://www.gnu.org/software/wget/wget.html
--
http://mail.python.org/mailman/listinfo/python-list
On my laptop, I have an NTFS partition for NT, a FAT partition for
data as a dmz which both linux and NT can access, and an ext3
partition for linux. However, I've experienced some weirdness on the
FAT partition, and I'm wondering if anybody can tell me why it's
happening.
Yesterday, I downloaded
ipython and pyshell?
http://www.onlamp.com/pub/a/python/2005/01/27/ipython.html
http://www.wxpython.org/PyManual.html
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 16 Jul 2005 10:25:29 -0400, Peter Hansen wrote:
> Bengt Richter wrote:
>> >>> identity = ''.join([chr(i) for i in xrange(256)])
>> >>> unprintable = ''.join([c for c in identity if c not in
>> string.printable])
>
> And note that with Python 2.4, in each case the above square brackets
"Tom Anderson" <[EMAIL PROTECTED]> wrote:
> On Sat, 16 Jul 2005, Joseph Garvin wrote:
>
> > Someone correct me if I'm wrong -- but isn't this the Shortest Path problem?
>
> Dang! I was just about to point that out.
>
> [snipped]
>
> But yes, this is basically about who can write the fastest implem
Bengt Richter wrote:
> >>> identity = ''.join([chr(i) for i in xrange(256)])
> >>> unprintable = ''.join([c for c in identity if c not in string.printable])
And note that with Python 2.4, in each case the above square brackets
are unnecessary (though harmless), because of the arrival of "genera
[EMAIL PROTECTED] wrote:
> In general, it is good idea to use expect kind of tool to deal with
> interactive programs like ssh. You may try using pexpect
> (http://pexpect.sourceforge.net).
>
I tried tha once (on Solaris) and found that ssh could tell that
pexpect wasn't a real tty and refused t
Thanks for these replies -- looks like I have all I need; now it is just
a question of getting my head around the applications and doing some
testing...
Many thanks for pointers.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> How do I use Python to send keystrokes to a console window in Windows
> XP?
import win32com.client
shell = win32com.client.Dispatch("WScript.Shell")
shell.AppActivate("Command Prompt")
shell.SendKeys("cls{ENTER}")
shell.SendKeys("dir{ENTER}")
shell.SendKeys("echo Hi Th
hi
i'm after a way to securely upload a file to a web server and I'm
wondering how to go about it. basically i want to upload a small text
file to my hosted webspace once every hour or so. because it will be
happening once an hour, i want to make sure the transaction is
encrypted, but i don't rea
The usual order I recommed is ...
http://honors.montana.edu/~jjc/easytut/easytut/
http://www.ibiblio.org/obp/thinkCSpy/
http://docs.python.org/tut/tut.html
Ron's list is quite a good place for tutorials
http://www.awaretek.com/tutorials.html
--
http://mail.python.org/mailman/listinfo/python-lis
Wow, that was the most thorough answer to a comp.lang.python question
since the Martellibot got busy in the search business.
--
http://mail.python.org/mailman/listinfo/python-list
[Bengt Richter]
> how about (untested)
>
> def get_options(opts):
> """Return True or False if an option is set or not"""
> return [1 for val in vars(opts).values() if val is not None] and True or
> False
While we're tossing around hacks and coding atrocities, we should note
that:
Pippy looks pretty dead. Wasn't someone else working on a Palm port ?
Best Regards,
Fuzzyman
http://www.voidspace.org.uk/python
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 16 Jul 2005, Joseph Garvin wrote:
> Someone correct me if I'm wrong -- but isn't this the Shortest Path problem?
Dang! I was just about to point that out.
> I don't foresee anyone getting a more efficient solution than what they
> can find in hundreds of algorithms textbooks. If this is
[EMAIL PROTECTED] wrote:
> I used to use Snakespell from scriptfoundry to do spellchecking on my
> website (www.peterbe.com/search?q=pyton) but now that I've moved server
> and wiped the old machine I forgot to take with me the Snakespell code.
>
> www.scriptfoundry.com where it used to live seem
D H wrote:
> See the mechanize module: http://wwwsearch.sourceforge.net/mechanize/
I second this, a very useful module. I've unfortunately had to change it
a little to deal with inevitably bad HTML supplied by web sites.
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
Someone correct me if I'm wrong -- but isn't this the Shortest Path
problem? I don't foresee anyone getting a more efficient solution than
what they can find in hundreds of algorithms textbooks. If this is
indeed the case it should just come down to whoever can pull the
narliest tricks to creat
WGW wrote:
> I would like to automate some simple browser navigating using python.
> Ideally, I would like a package like pyexpect, but that can handle a
> browser in much the same way as pyexpect handles a terminal (tall
> order!). In short, I want a macro language for a browser (I know about
59 matches
Mail list logo