[Tutor] python help

2007-10-21 Thread SwartMumba snake
I have tried to find out the solution my self, and have failed to do so. So here is my problem: I want to submit text into an edit box on a web page. ie the equivalent of me typing text into the edit box and clicking the submit button. __ Do You

[Tutor] urllib2 and cookies

2007-10-25 Thread SwartMumba snake
I want to read the html source off a site but the site requires cookies. What code must I use to handle my cookies, instead of me typing them out? NB I want to use urllib2 to open the site, not urllib. I am currently using python 2.5 This is what I have done so far, but I do not want to type out

[Tutor] images

2007-11-04 Thread SwartMumba snake
Hi I would like to know which is the best module to use, with regard to my needs: - I would like to read an image off a website e.g. http://www.examplecom/image/1/PNG/ - I would then like to read the pixels and do other things to the image I am currently using python 2.5 Thanks in advance . .

[Tutor] lst file

2008-01-24 Thread SwartMumba snake
Hi I am trying to read from a specific .lst file. When I read from it, it just prints out blank lines and I am sure that this file contains content. This is what I am using to read from the file: f = open("C:\\Users\\UserName\\Directory\\words.lst") for line in f: print line f.close() D

[Tutor] login

2008-03-15 Thread SwartMumba snake
I am trying to get the cookies from the site when I login, though html.info(). The problem is that when I check the source ( html.read() ) it shows that it does not recognize me as logged in. Also, if I chech html.info(), the cookies that I am suppose to receive, if I logged in successfully, are no

[Tutor] login

2008-03-15 Thread SwartMumba snake
ED]    Cc: Tutor@python.org    Date: Saturday, March 15, 2008, 11:44 AM    SwartMumba snake wrote:    > I am trying to get the cookies from the site when I login, though     > html.info(). The problem is that when I check the source ( html.read() )     > it shows that it does not recogni

[Tutor] mod python

2008-04-22 Thread SwartMumba snake
Hello Python Mailing ListI am trying to set up mod python 3.3.1. I have python 2.5.1, apache 2.2 server, and my os is Vista. The problem is that after I install mod python, there is no mod_python.so in the apache modules directory. Thus the "LoadModule python_module modules/mod_python.so" call does