On 12/09/06, Chris Hengge [EMAIL PROTECTED] wrote:
I don't suppose that anyone has a fix for me eh? I've tried about all I
can think of and I'd like to be able to give this program a trial
tomorrow when I get back to work.. sure would save me some time :]
Will there be internal blanks? You
Patricia wrote:
Hi,
I have used urllib and urllib2 to post data like the following:
dict = {}
dict['data'] = info
dict['system'] = aname
data = urllib.urlencode(dict)
req = urllib2.Request(url)
And to get the data, I emulated a web page with a submit button:
s = htmlbody
Chris
are you looking for something like this?
xlSht=xlApp.Worksheets(Sheet1)
irow=1
XL_row_has_data=1
while XL_row_has_data:
xlRng=xlSht.Range(xlSht.Cells(irow,1),xlSht.Cells(irow,256))
ncell=xlApp.WorksheetFunction.CountA(xlRng)
if ncell ==0:
# Cells in current row
Akanksha Govil wrote:
Hi,
I have downloaded an add on python script etherealXML.py for parsing
the ethereal captured packets.
This script runs fine on python 2.3 but on python 2.4 it gives error.\
What is the error?
Has any one tried porting this script?
This might give a clue:
Hi all,
I looked a little bit at the urllib and it all looks fairly easy.
What I didn't see, if it is there, was how to know or identify if a page
was successfully downloaded. I want to do tests to see if a connection
to a webpage was successful by parsing whatever came back.
Will this be the
Johan Geldenhuys wrote:
Hi all,
I looked a little bit at the urllib and it all looks fairly easy.
What I didn't see, if it is there, was how to know or identify if a page
was successfully downloaded. I want to do tests to see if a connection
to a webpage was successful by parsing whatever
Does python have foreach loops? I don't see any
mention of them in the docs. Am I going to have to
use Perl (gasp!) if I want my beloved foreach loop?
Its called a for loop in Python...
Or is there some extra magic in the Perl version that I'm missing?
Alan G.
I was thinking more along the lines of this:
A C++ for loop:
This is exactly NOT a foreach loop, its a vanilla for loop.
#include iostream
using std::cout;
int main() {
for (int i = 0; i 10; i++) {
cout i \n;
}
for i in range(10): print i
Alan G.
On 9/12/06, Johan Geldenhuys [EMAIL PROTECTED] wrote:
Hi all,I looked a little bit at the urllib and it all looks fairly easy.What I didn't see, if it is there, was how to know or identify if a pagewas successfully downloaded. I want to do tests to see if a connection
to a webpage was successful
I don't know if this will work in all cases. I tried it with a internet
connection and could get a 'OK' response. Then I tried it withoput a
internet connection and received a Traceback error, which is not what I
want.
It gave me some idea what is possible.
Johan
Michael P. Reilly wrote:
On
Em Segunda 11 Setembro 2006 19:45, Kent Johnson escreveu:
Tiago Saboga wrote:
Ok, the guilty line (279) has a copy; that was probably defined in the
dtd, but as it doesn't know what is the right dtd... But wait... How does
python read the dtd? It fetches it from the net? I tried it
I got it working!
try:#Attempt to record the fields from the excel file. row = 10 #Set the row in excel. #While the cell isn't 'None', keep looping. #Excel (row,col) for navigation while xlSht.Cells(row,1).Value != None:
print file, '%s', % xlSht.Cells(row,1).Value, row = 1 + row
This does
12 matches
Mail list logo