Re: Running Python scripts from BASH

2007-02-28 Thread ina
On Feb 27, 11:16 pm, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: > "Ishpeck" <[EMAIL PROTECTED]> wrote: > > 8<--- a bash problem - > > If it were Python, the advice would have been to use the > print statement to figure out what the content of the > variables wer

Re: newbie - returned values from cscript.exe

2007-01-26 Thread ina
I did the same thing back before I knew about python and com. I hope this example gets you on the right track. It is just a simple script that does a dir and returns prints it out. import os, sys dCall = "dir" resultFromCall = os.popen(dCall) #get data back from the system call mv = resultFromCal

Re: html + javascript automations = [mechanize + ?? ] or something else?

2007-01-16 Thread ina
John wrote: > I have to write a spyder for a webpage that uses html + javascript. I > had it written using mechanize > but the authors of the webpage now use a lot of javascript. Mechanize > can no longer do the job. > Does anyone know how I could automate my spyder to understand > javascript? Is

Re: Any easy-to-use email send module?

2006-12-20 Thread ina
I put this together for some automated testing I do with an email system. I hope it is of help to you. It dosn't do cc and bcc In this version but it would be simple to add to the eMessage headder. http://phlik.ishpeck.net/index.php?P=b1114201575phlik -- http://mail.python.org/mailman/listinfo

Re: re pattern for matching JS/CSS

2006-12-15 Thread ina
i80and wrote: > I'm working on a program to remove tags from a HTML document, leaving > just the content, but I want to do it simply. I've finished a system > to remove simple tags, but I want all CSS and JS to be removed. What > re pattern could I use to do that? > > I've tried > '' > but that

Re: need guidance on sending emails with attachment with python.

2006-12-12 Thread ina
I put to gether a class to deal with this along time ago it might be of help to you. You can find it at http://phlik.ishpeck.net/index.php?P=b1114201575phlik. krishnakant Mane wrote: > hello, > I am a bit confused. > I want to make a program that will take some data from a database and > make a st

Re: odd problem with watsup and VB6 application with modal dialog

2006-11-11 Thread ina
At my work we had the same problem. We found that the best solution was to use a thread with the code to handle the model dialog. This worked best for us because the only models in our product are the error messages, and using a thread gave us the ability to check and see if the modal dialog was

Re: using split function

2006-11-06 Thread ina
[EMAIL PROTECTED] wrote: > Hi, > > I have to write a code in python to read a matrix from a text file and > for that i am using following code. But it gives an error saying > "NameError: name 'split' is not defined". Can anyone help me with this. > -

Re: WebScraping

2006-11-04 Thread ina
This might be of help to you. http://phlik.ishpeck.net/index.php?P=a1141076600phlik http://phlik.ishpeck.net/index.php?P=b1134168973phlik Graham Feeley wrote: > Can someone steer me to scripts / modules etc on webscraping please??? > Ultimately I would like someone to write a script for me. > How

Re: Put a url in a browsers address bar

2005-08-18 Thread ina
Here is a start. http://www.ishpeck.net/?P=pytesting This is all stuff based on windos. Colin Gillespie wrote: > Dear All, > > I would like to place a url in my browsers address bar, then execute. > How can do this? > > e.g. > > def goToGoogle(): > url = "www.google.com" > b = openB

Re: How to quit a Windows GUI program gracefully with Python under Cygwin?

2005-08-11 Thread ina
Send the active program an alt-f4. I do this through shell.send keys. Hope this was of help. KB wrote: > Hi, > > I want to write a Python script that controls and automates a Windows > GUI computation program. > > My problem is that I do not know how to quit the Windows GUI program > gracefully w

Re: Using win32com for web automation

2005-07-26 Thread ina
Look up pamie it should do all the work you need. If it dosn't I can send you ishyBrowser but pamie has more comunity support. -- http://mail.python.org/mailman/listinfo/python-list

is there a better way to walk a file system?

2005-07-01 Thread ina
I want to walk a folder structor and group all the files by extention. Here is the code I put together is there a better way of doing this? import os folderKey = "Folders" dicExt = {} tDicKey = [] tDicKey.append(folderKey) dicExt[folderKey] = [] walkPath = r"\\zek\C$\AST" for d in os.walk(walk