RE: Dealing with marketing types...

2005-06-11 Thread bruce
your role), then let the other guy come after you... things get resolved in a much more equitable manner when the concerned parties are reasonably equal... -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of tom Sent: Saturday, June 11, 2005 9:51 AM To:

RE: Dealing with marketing types...

2005-06-12 Thread bruce
just out of curiosity.. where'd you read the 150,000-200,000 servers... i've never seen guesses that high.. i've seen somewhere as high as possible 100K... but the author stated that he was purely guessing... -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[

how to use imaageop.scale

2007-05-23 Thread Bruce
Hi, I want to compress a jpg file. e.g. a jpg file which has RGB band (24bit per pixel), 100 * 100 size to 50 * 50 size. I tried to use scale function in imageop module but failed. Any suggestions about this? Thanks! Bruce -- http://mail.python.org/mailman/listinfo/python-list

Re: how to use imaageop.scale

2007-05-23 Thread Bruce
On May 23, 5:31 pm, "Amit Khemka" <[EMAIL PROTECTED]> wrote: > On 23 May 2007 00:02:34 -0700, Bruce <[EMAIL PROTECTED]> wrote: > > > Hi, I want to compress a jpg file. e.g. a jpg file which has RGB band > > (24bit per pixel), 100 * 100 size to 50 * 50 si

configobj - use of

2007-05-24 Thread Bruce
I assume that you know the module configobj. I use it like this: I have a config_file : [sec1] [[subsec1]] a = 1 b = 2 [[subsec2]] a = 3 b = 1 .. ans so on Then in the code I have c = configobj.ConfigObj(path_to_config file) then I go like for instance for s in c['sec1']: print c['sec1

Auction/Bidding system for AdWords/AdSense functionality

2007-10-04 Thread bruce
Hi... Looking for an app that provides bidding/auction functionality, for a system similar to what Google provides. Anybody have any expertise with any system like this, or any kind of app that could be modified to get this kind of functionality. Thanks -- http://mail.python.org/mailman/list

changes on disk not visible to script ?

2007-10-08 Thread Bruce
Hi, I am trying to have my script automate a task, by using os.system, but I cant get it to work. manually, outside the script I can do this thing by C:\echo argument_file | the_program This works very well when argument_file is created before my script is started In the script I try to do it l

Re: changes on disk not visible to script ?

2007-10-08 Thread Bruce
On 8 Okt, 15:56, Richie Hindle <[EMAIL PROTECTED]> wrote: > [Bruce] > > > f.close() > > cmd = "echo %s | %s"%(argument_file,the_program) > > Either: you are a VB programmer and you've actually typed "f.close" rather > than "f.close()&q

python - process id

2007-01-14 Thread bruce
hi... is there a way to have a test python app, get its' own processID. i'm creating a test python script under linux, and was wondering if this is possible.. also, i've tried using an irc client to join the irc #python channel, and for some reason i keep getting the err msg saying that the 'addr

Parallel Python environments..

2007-11-06 Thread bruce
Hi.. If I wanted to be able to build/test/use parallel python versions, what would I need to do/set (paths/libs/etc...) and where would I need to place the 2nd python version, so as not to screw up my initial python dev env. I'd like to be able to switch back/forth between the different versions

RE: Parallel Python environments..

2007-11-06 Thread bruce
: Parallel Python environments.. * bruce (Tue, 6 Nov 2007 07:13:43 -0800) > If I wanted to be able to build/test/use parallel python versions, what > would I need to do/set (paths/libs/etc...) nothing > and where would I need to place the 2nd python version, so as not to > screw up my

RE: Parallel Python environments..

2007-11-06 Thread bruce
i'm running rhel... so there isn't a python-config script as far as i know.. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Tuesday, November 06, 2007 8:26 AM To: python-list@python.org Subject: Re: Parallel Python environments..

RE: Parallel Python environments..

2007-11-06 Thread bruce
r 06, 2007 2:07 PM To: python-list@python.org Subject: Re: Parallel Python environments.. En Tue, 06 Nov 2007 18:43:10 -0300, bruce <[EMAIL PROTECTED]> escribió: > if i have python 2.4.3 installed, it gets placed in the python2.4 dir.. > if i > don't do anything different, an

python - an eggs...

2007-11-10 Thread bruce
Hi... I have a python script/app that i'm dealing with. It uses Durus, which installs as an egg. I'm trying to figure out how to modify any of the underlying source files or the egg, short of modifying the original source file, and then having to reinstall the egg via "python setup.py install"...

RE: python - an eggs...

2007-11-11 Thread bruce
ion. Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Diez B. Roggisch Sent: Sunday, November 11, 2007 4:36 AM To: python-list@python.org Subject: Re: python - an eggs... bruce schrieb: > Hi... > > I have a python script/app that i'm dealing w

RE: python - an eggs...

2007-11-11 Thread bruce
lf Of Diez B. Roggisch Sent: Sunday, November 11, 2007 10:03 AM To: python-list@python.org Subject: Re: python - an eggs... bruce schrieb: > Hi Diez... > > In my case, I do a "python setup.py install" and i get a Durus...egg > installed in the /usr/lib/python2.4/site-packages/

RE: python - an eggs...

2007-11-11 Thread bruce
ointers on this!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Diez B. Roggisch Sent: Sunday, November 11, 2007 2:58 PM To: python-list@python.org Subject: Re: python - an eggs... bruce schrieb: > Hi Diez > > Forgot to mention, that when I

RE: python - an eggs...

2007-11-12 Thread bruce
. Roggisch Sent: Monday, November 12, 2007 2:16 AM To: python-list@python.org Subject: RE: python - an eggs... bruce wrote: > Hi Diez... > > I've never used setuptools, (it's not on the box) and i don't have > easy_install tools installed... > > But in looking at

RE: python - an eggs...

2007-11-12 Thread bruce
python.org Subject: RE: python - an eggs... bruce wrote: > diez... > > i was being polite in thanking you for your input/thoughts... i actually > had read what you'd posted, as i stated. Really? Did you? Here your third question: -3rd question.. in searching the 'net,

Can we get rid of unrelated non-python posts?

2007-11-12 Thread Bruce
I joined this to read about python. Please don't respond and move to another list. Thanks! -Bruce -- http://mail.python.org/mailman/listinfo/python-list

python debugging...

2007-11-17 Thread bruce
Hi... new to python, trying to debug an app i have : >>> lib]# cat foo #!/usr/bin/python2.4 -OO # -*- coding: ascii -*- # vim:ts=4:sw=4:softtabstop=0:smarttab # import sys import slstorageserver slstorageserver.storaged(sys.argv) == i do a >>

python question!!

2007-11-22 Thread bruce
hi... new to python, and can't seem to find an answer to this via google.. of course i'm not even sure what to callit.. so i might be searching in the wrong places... a python script foo.py, can have an import.. foo.py import dog import cat where dog, and cat, might have other "import" stat

mailing list for indian college student software developers

2006-04-18 Thread bruce
/ideas/etc... thanks -bruce -- http://mail.python.org/mailman/listinfo/python-list

RE: (was Re: Xah's Edu Corner: Criticism vs Constructive Criticism)

2006-04-29 Thread bruce
but you know... one could simply hit the delete/skip button when you see a msg you don't like!!! or email/spam filters... or you can spend more time complaining.. in life, you gotta' learn to pick your battles... peace.. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTEC

Zope Guru...

2006-05-03 Thread bruce
t to testing to production, which is the workflow. At the same time, I have to implement/enforce some form of Access control for the users, so they don't screw up with files that they shouldn't touch... If there's anyone on this list that I could talk to, I'd appreciate it.. Thanks

Need Plone Information

2006-05-03 Thread bruce
Hi I've never used Python/Plone, and am wondering if I can talk with anyone who's used Plone. I'm trying to determine if Plone could be easily used for a potential application. -bruce [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Drop Down Menus...

2006-05-05 Thread bruce
Hi... Never used python, but I have a question regarding Drop Down Menus. Does Python allow me to create a website, that will permit the user to create Drop Down menus that can be initiated with the right mouse click? If it can, is it fairly easy to implement? Thanks -Bruce -- http

RE: Drop Down Menus...

2006-05-05 Thread bruce
n't think python would be able to given that it is server side, whereas a java web app, because of the shipped/downloadable components could provide this kind of functionality.. -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of alisonken1 Sent: F

group for pure startups...

2006-05-08 Thread bruce
tings where you could form your team, join a team, etc... i'm in the west coast, bay area. thanks -bruce [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

sqlobject issue/question...

2007-12-28 Thread bruce
hi i'm playing around, researching sqlobject, and i notice that it appears to require the use of "id" in each tbl it handles in the database. if i already have a db schema, and it doesn't use 'id' as an auto-generated field, does that mean that i can't use/implement sqlobject. is there a way

sqlobject question...

2007-12-29 Thread bruce
hi... this continues my investigation of python/sqlobject, as it relates to the need to have an id, which is auto-generated. per various sites/docs on sqlobject, it appears that you can override the id, by doing something similar to the following: def foo(SQLObject): def _init(self, id, conn

RE: spawning pyhon apps...

2009-01-09 Thread bruce
python-list-bounces+bedouglas=earthlink@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf Of Jason Scheirer Sent: Friday, January 09, 2009 3:59 PM To: python-list@python.org Subject: Re: spawning pyhon apps... On Jan 9, 3:43 pm, "bruce" wrote: > hi jas

parsing javascript generated files...

2009-01-10 Thread bruce
#x27;t appear to be a really good solution to this situation. I'm curious if someone knows of a solution to this issue that's now available and that works! Thanks for any thoughts/comments in this issue... -bruce -- http://mail.python.org/mailman/listinfo/python-list

basic python list/dict/key question/issues..

2009-01-13 Thread bruce
Hi.. quite new to python, and have a couple of basic question: i have ("term":["1","2","3"]) as i understand it, this is a list, yes/no? how can i represent this as a dict/list? i've got a few of these that i'm trying to deal with.. thanks -- http://mail.python.org/mailman/listinfo/python

List/Set/Dict..

2009-01-15 Thread bruce
Hi... i have the test dict/list a= {"a": 'a1',"b" : "b1"} b= [{"a": 'a1',"b" : "b1"}] i'm trying to figure out how to programtically tell them apart... ie, which is a dict, and which is a list... is there a way to accomplish this.. thanks -- http://mail.python.org/mailman/listinfo/python-li

RE: ifconfig in python

2009-01-20 Thread bruce
hi... in general, i've found that using "route" to find the iface for the default gets me the interface in use... i then parse either ifconfig/iwconfig, to get the address of the nic for that interface.. it's worked ok so far on most machines i've dealt with... thoughts/comments are of course wel

RE: ifconfig in python

2009-01-20 Thread bruce
so the question really starts to look like: -what's the default listening address for my app (insert nic)? -what's the default sending address for my app (insert nic)? -what's the default listening address for my server? -what's the default sending address for my server? -what's the default l

RE: PYTHON HTTP POST WORKING EXAMPLE NEEDED

2009-01-23 Thread bruce
hey didn't get the initial post/ just what is the original poster looking for?? -Original Message- From: python-list-bounces+bedouglas=earthlink@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf Of r Sent: Friday, January 23, 2009 5:03 PM To: py

RE: Could you recommend job schedulling solution?

2009-02-11 Thread bruce
hi... not sure exactly what you're looking for, but "condor" has a robust job scheduling architecture for dealing with grid/distributed setups over multiple systems.. give us more information, and there might be other suggestions! -Original Message- From: python-list-bounces+bedouglas=e

testing xml against xpather with firefox

2009-02-15 Thread bruce
ather function works as expected. i've posted all the code/output/XPather xpath to pastebin to save space.. i can send everything i have to whoever can help!! http://pastebin.com/m26acf804 thanks! -bruce -- http://mail.python.org/mailman/listinfo/python-list

pythojn/xpath question...

2009-02-16 Thread bruce
hi... using libxml2dom as the xpath lib i've got a situation where i can have: foo=a.xpath( /html/body/table[2]/tr[45]/td) and i can get 11 as the number of returned td elements for the 45th row... this is as it should be. however, if i do: foo=a.xpath( /html/body/table[2]/tr) and then try

spawning pyhon apps...

2009-01-09 Thread bruce
hi... toying with an idea.. trying to figure out a good/best way to spawn multiple python scripts from a parent python app. i'm trying to figure out how to determine when all child apps have completed, or to possibly determine if any of the child processes have died/halted.. parent app spawn chi

RE: spawning pyhon apps...

2009-01-09 Thread bruce
19 PM To: python-list@python.org Subject: Re: spawning pyhon apps... On Jan 9, 2:47 pm, "bruce" wrote: > hi... > > toying with an idea.. trying to figure out a good/best way to spawn multiple > python scripts from a parent python app. i'm trying to figure out how to &g

App Question.

2008-10-14 Thread bruce
Hi list!! Got a question, and I can't find a good answer for, so I figured i'd post here. I'm working on a project that involves a number of smaller apps to be developed, and run. In order to build this overall application, I'm trying to find a web based app that I can use to manage the entire pro

RE: Remote control of firefox (mozilla) from a python program

2008-11-10 Thread bruce
hi mike you might look at/into selenium, or firewatir check the spellings! -peace -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Driscoll Sent: Monday, November 10, 2008 1:28 PM To: python-list@python.org Subject: Re: Remote control of firef

file locking...

2009-02-28 Thread bruce
Hi. Got a bit of a question/issue that I'm trying to resolve. I'm asking this of a few groups so bear with me. I'm considering a situation where I have multiple processes running, and each process is going to access a number of files in a dir. Each process accesses a unique group of files, and th

RE: file locking...

2009-03-01 Thread bruce
-list-bounces+bedouglas=earthlink@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf Of MRAB Sent: Sunday, March 01, 2009 8:04 AM To: python-list@python.org Subject: Re: file locking... bruce wrote: > Hi. > > Got a bit of a question/issue that I'

RE: file locking...

2009-03-01 Thread bruce
@python.org]on Behalf Of Nigel Rantor Sent: Sunday, March 01, 2009 2:00 AM To: koranthala Cc: python-list@python.org Subject: Re: file locking... koranthala wrote: > On Mar 1, 2:28 pm, Nigel Rantor wrote: >> bruce wrote: >>> Hi. >>> Got a bit of a question/is

RE: file locking...

2009-03-01 Thread bruce
.org]on Behalf Of Gabriel Genellina Sent: Sunday, March 01, 2009 9:50 AM To: python-list@python.org Subject: Re: file locking... En Sun, 01 Mar 2009 15:39:56 -0200, bruce escribió: > the issue that i'm looking at is analogous to a FIFO, where i have lots > of > files being shoved in a dir

RE: file locking...

2009-03-02 Thread bruce
python-list-bounces+bedouglas=earthlink@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf Of Lawrence D'Oliveiro Sent: Monday, March 02, 2009 12:29 AM To: python-list@python.org Subject: RE: file locking... In message , bruce wrote: > using any kind of file lo

RE: file locking...

2009-03-03 Thread bruce
March 01, 2009 11:41 AM To: undisclosed-recipients: Subject: Re: file locking... On Sun, 1 Mar 2009 10:00:54 -0800, "bruce" declaimed the following in comp.lang.python: > > Except in my situation.. the client has no knowledge of the filenaming > situation, and i might have 1000s

Parsing/Crawler Questions..

2009-03-04 Thread bruce
Hi... Sorry that this is a bit off track. Ok, maybe way off track! But I don't have anyone to bounce this off of.. I'm working on a crawling project, crawling a college website, to extract course/class information. I've built a quick test app in python to crawl the site. I crawl at the top level

RE: Parsing/Crawler Questions..

2009-03-04 Thread bruce
.@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf Of Philip Semanchuk Sent: Wednesday, March 04, 2009 6:15 PM To: python-list (General) Subject: Re: Parsing/Crawler Questions.. On Mar 4, 2009, at 4:44 PM, bruce wrote: > Hi... > > Sorry that this is a bit of

RE: Parsing/Crawler Questions..

2009-03-05 Thread bruce
parsing functions... Thanks.. -Original Message- From: python-list-bounces+bedouglas=earthlink@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf Of John Nagle Sent: Wednesday, March 04, 2009 10:23 PM To: python-list@python.org Subject: Re: Parsing/

RE: Parsing/Crawler Questions..

2009-03-05 Thread bruce
on.org]on Behalf Of John Nagle Sent: Thursday, March 05, 2009 8:38 AM To: python-list@python.org Subject: Re: Parsing/Crawler Questions.. bruce wrote: > hi john.. > > You're missing the issue, so a little clarification... > > I've got a number of test parsers that point to a g

RE: Parsing/Crawler Questions - solution

2009-03-05 Thread bruce
ject: Re: Parsing/Crawler Questions - solution Philip Semanchuk wrote: > On Mar 5, 2009, at 12:31 PM, bruce wrote: > >> hi.. >> >> the url i'm focusing on is irrelevant to the issue i'm trying to solve at >> this time. > > Not if we're to unde

RE: Parsing/Crawler Questions - solution

2009-03-05 Thread bruce
@python.org]on Behalf Of John Nagle Sent: Thursday, March 05, 2009 10:54 AM To: python-list@python.org Subject: Re: Parsing/Crawler Questions - solution Philip Semanchuk wrote: > On Mar 5, 2009, at 12:31 PM, bruce wrote: > >> hi.. >> >> the url i'm focusing on is irrele

RE: Parsing/Crawler Questions - solution

2009-03-07 Thread bruce
and this solution will somehow allow a user to create a web parsing/scraping app for parising links, and javascript from a web page? -Original Message- From: python-list-bounces+bedouglas=earthlink@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on Beha

RE: is this possible (getting info off web page)

2009-04-09 Thread bruce
Hi Esmail. I've not looked at the site. however, i can give you some general pointers that might help you in solving your issue. first off, try to accomplish your goal, using curl, or one of the other cmdline apps that fetch page data. this allows you to quickly nail down any issues that might oc

RE: Open source web crawler with mysql integration

2009-04-10 Thread bruce
phillip... lots of code is opened source "as is"!!! when you get right down to it, a good deal of "open source" code from sourceforge/hotscritps/freshmeat/etc.. is pretty poor, but it is open sourced. you could simply toss your code out into the open source pool, and not be worried about support

python screen scraping/parsing

2008-06-13 Thread bruce
body", or tbody/tr[4]... if i leave off the tbody, i can display data, as the tr_ is an array with data... with the "tbody" it appears that the tr_ array is not defined, or it has no data... however, i can use the DOM tool with firefox to observe the fact that the "tbody" is there... so.. what am i missing... thoughts/comments are most welcome... also, i'm willing to send a small amount via paypal!! -bruce -- http://mail.python.org/mailman/listinfo/python-list

RE: python screen scraping/parsing

2008-06-13 Thread bruce
PM To: python-list@python.org Subject: Re: python screen scraping/parsing On 13 Jun, 20:10, "bruce" <[EMAIL PROTECTED]> wrote: > > url ="http://www.pricegrabber.com/rating_summary.php/page=1"; [...] > tr = > "/html/body/[EMAIL PROTECTED]&#x

python/ruby question..

2008-06-18 Thread bruce
hi... can someone point me to where/how i would go about calling a ruby app from a python app, and having the python app being able to get a returned value from the ruby script. something like test.py a = os.exec(testruby.rb) testruby.py foo = 9 return foo i know this doesn't work... but

RE: python/ruby question..

2008-06-19 Thread bruce
s to for now... like i said.. rather simple, as it should be. so thanks for the help/suggestions from everyone! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul McGuire Sent: Thursday, June 19, 2008 6:27 PM To: python-list@python.org Subject: Re: python/

db question

2008-07-20 Thread bruce
Hi... simple test mysql cmd - select * from foo where dog like "%small%"; sql ="""select * from foo where dog like "%%%s%%" """ c.execute(sql, (var,)) the above doesn't work, and I can't seem to figure out how to display/print out the sql as i't actually been excuted, so I can see where the is

db question

2008-07-20 Thread bruce
update... in using the mysql_query log function, i get the following query being registered: select * from foo where dog like "%'small'%" so.. if i can figure out how to get rid of the "'" inside the "%" the query should/will work... thanks Hi... simple test mysql cmd - select * from foo

Trying to solve a python/mechanize "error 500" http error

2008-07-21 Thread bruce
i'm getting the following error: mechanize._response.httperror_seek_wrapper: HTTP Error 500: i'm running python 5.1 and mechanize 0.1.7b I have no idea as to what I have to change/modify/include to handle this issue. The link that I'm testing is at the bottom of the page. When I insert th

Trying to solve a python/mechanize "error 500" http error

2008-07-21 Thread bruce
i'm getting the following error: mechanize._response.httperror_seek_wrapper: HTTP Error 500: i'm running python 5.1 and mechanize 0.1.7b I have no idea as to what I have to change/modify/include to handle this issue. The link that I'm testing is at the bottom of the page. When I insert th

parsing form with a website question...

2008-08-14 Thread bruce
Hi guys... Got a question that I figured I'd ask before I reinvent the wheel. A basic website has a form, or multiple forms. within the form, there might be multiple elements (lists/select statements, etc...). each item would have a varname, which would in turn be used as part of the form action

list/tuple/dict question

2008-08-17 Thread bruce
hi guys/gals... got a basic question that i can't get my hands around. i'm trying to programatically create/use a list/tuple (or whatever the right phrase in pyton is!!) basically, something like: foo = [] foo.append('cat') foo.append('dog') foo[1] = [] (and in this case, i really want to h

RE: list/tuple/dict question

2008-08-17 Thread bruce
8 2:27 PM To: python-list@python.org Subject: Re: list/tuple/dict question bruce wrote: > a dict doesn't seem to work, as it is essentially a series of key/values, > which isn't exactly what i want... so what do you think a variable namespace is? as usual, Python works best i

xpath questions...

2008-08-23 Thread bruce
Hi... playing around with xpath and the html dom... i've got a sample: html body form action='foo' name='cat' /form /body /html i can create a test xpath: //form/[action and get the form stuff... i'm curious, is there a way to select an attribute, only if another attribute in the e

RE: xpath questions...

2008-08-23 Thread bruce
g Subject: Re: xpath questions... bruce wrote: > playing around with xpath and the html dom... are you sure this question belongs on a Python forum? -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

RE: xpath questions...

2008-08-23 Thread bruce
t1[0].toString() sys.exit() thanks!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Fredrik Lundh Sent: Saturday, August 23, 2008 5:58 AM To: python-list@python.org Subject: Re: xpath questions... bruce wrote: > Regarding the xpath question I'

RE: xpath questions...

2008-08-23 Thread bruce
tt =",t1[0].toString() sys.exit() thanks!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Fredrik Lundh Sent: Saturday, August 23, 2008 5:58 AM To: python-list@python.org Subject: Re: xpath questions... bruce wrote: > Regarding the xpath q

python/xpath issue..

2008-08-25 Thread bruce
hey guys... got a weird, hopefully simple issue. the following sample bit of script is stripped down, and simply gets the "form" node from the specified site "schedule.psu.edu". the problem i run into is that the dom/xpath from the libxml2dom works, and i get the dom object everytime i run the a

RE: python/xpath issue..

2008-08-25 Thread bruce
never mind... it was an issue with the targeted site... it's sending screwed up html the times when i get an err... thanks though! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of bruce Sent: Monday, August 25, 2008 4:49 AM To: python-list@pytho

python - firefox dom/xpath question/issue

2008-08-25 Thread bruce
Hi. Got a test web page, that basically has two " . . . I've simplified things a bit... but basically, the 1st "html/body" is empty, with the 2nd containing the data/nodes I need. In using xpath("/html/body/form"), the app returns nothing/crashes.. I've tried to do something like xpath("

libxml2dom - parsing maligned html

2008-08-26 Thread bruce
Hi... I'm using quick test with libxml2dom === import libxml2dom aa=libxml2dom.parseString(foo) ff=libxml2dom.toString(aa) print ff === -- when i start, foo is: . . . --- when i print ff it's:

RE: libxml2dom - parsing maligned html

2008-08-26 Thread bruce
owser process, in order to really capture all the required data. any thoughts on the pros/cons of this kind of approach to scraping data... thanks -bruce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Boddie Sent: Tuesday, August 26, 2008 8:48 AM To: p

[no subject]

2008-08-29 Thread bruce
Hi. I'm using mechanize to parse a page/site that uses the meta http-equiv tag in order to perform a refresh/redirect of the page. I've tried a number of settings, and read different posts on various threads, but seem to be missing something. the test.html page is the page that the url returns, h

python/mechanize - redirect/refresh question

2008-08-29 Thread bruce
Hi. I'm using mechanize to parse a page/site that uses the meta http-equiv tag in order to perform a refresh/redirect of the page. I've tried a number of settings, and read different posts on various threads, but seem to be missing something. the test.html page is the page that the url returns, h

RE: [wwwsearch-general] (no subject)

2008-08-29 Thread bruce
ECTED] [mailto:[EMAIL PROTECTED] Behalf Of John J Lee Sent: Friday, August 29, 2008 12:34 PM To: [EMAIL PROTECTED] Cc: python-list@python.org Subject: Re: [wwwsearch-general] (no subject) On Fri, 29 Aug 2008, bruce wrote: [...] > does the page (test.html) need to be completely valid html? N

parsing "&A" in a string..

2008-08-31 Thread bruce
Hi. a pretty simple question, i'm guessing. i have a text/html string that looks like: (A&E) the issue i have is that when i parse it using xpath/node/toString, i get the following ...(A&E;). note the semicolon ";". I've tried to use the encoding function of toString with no luck..

RE: parsing "&A" in a string..

2008-08-31 Thread bruce
riginal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Fredrik Lundh Sent: Sunday, August 31, 2008 1:10 PM To: python-list@python.org Subject: Re: parsing "&A" in a string.. bruce wrote: > a pretty simple question, i'm guessing. > > i have a text/h

RE: parsing "&A" in a string..

2008-08-31 Thread bruce
aha... it's the beautifulsoup() that's taking the "&E" and giving the "&E;"... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Fredrik Lundh Sent: Sunday, August 31, 2008 1:10 PM To: python-list@python.org Subject:

python mechanize/libxml2dom question

2008-09-01 Thread bruce
hi... i've got the following situation, with the following test url: "http://schedule.psu.edu/soc/fall/Alloz/a-c/acctg.html#";. i can generate a list of the tables i want for the courses on the page. however, when i try to create the xpath query, and plug it into the xpath within python, i'm miss

python mechanize/libxml2dom question

2008-09-01 Thread bruce
hi... i've got the following situation, with the following test url: "http://schedule.psu.edu/soc/fall/Alloz/a-c/acctg.html#";. i can generate a list of the tables i want for the courses on the page. however, when i try to create the xpath query, and plug it into the xpath within python, i'm miss

python XPATH question - mechanize/libxml2dom

2008-09-01 Thread bruce
hi... i can use an xpath query to create a node from an html/dom representation. however, if i have a node, is there a way to generate an xpath query from the node. in testing with firefox/dom inspector, i can use "ancestor::*", but i can't determine where/how to implement this using mechanize/li

python - mechanize/browser/POST issue

2008-09-02 Thread bruce
evening... using mechanize/Browser, i can easily do a url/get, and process submitting a form that uses a GET as the action. however, I'm not quite sure how to implement the submittal of a form, that uses the POST action. Anyone have a short chunk of code that I can observer, that uses the mechani

python/xpath question..

2008-09-03 Thread bruce
morning i apologize up front as this is really more of an xpath question.. in my python, i'm using the xpath function to iterate/parse some html. i can do something like s=d.xpath("//tr/td/text()") count=len(s) and get the number of nodes that have text i can then do something like s=d.xpa

RE: Xpath for HTML processing

2008-09-06 Thread bruce
Hi Astley I can probably help here. Can you tell me exactly what you're trying to accomplish. the xpath query that you listed can be processed using libxml2dom (and a fewo other libs) are you looking to parse a web page, an xml doc, etc... let me know, and we'll see if we can help -Origi

RE: Use BeautifulSoup to delete certain tag while keeping its content

2008-09-06 Thread bruce
hi jackie, if you don't mind... can i ask what you're looking to accomplish? are you looking to simply get the text/string data, or something else??? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jackie Wang Sent: Saturday, September 06, 2008 8:12 AM To:

parsing a site/page that uses/calls javascript functions...

2008-09-28 Thread bruce
ser solution, as my overall goal is to run a parsing/crawling over a number of pages that utilize javascript.. Pointers, thoughts, comments, etc will be greatly appreciated. Thanks!!! -bruce -- http://mail.python.org/mailman/listinfo/python-list

Re: Use python to process XML file

2006-03-10 Thread Bruce
you can use function parse from xml.sax It takes your xml as the first argument and an xml.sax.handler.ContentHandler instance as the second. --- from xml.sax import parse from xml.sax.handler import ContentHandler class LogHandler(ContentHandler): def startElement(self,name): if na

Re: New-style Python icons

2006-03-21 Thread Bruce
3KWA skrev: > Superb! How about getting them in the 2.5 release? > > Part of the reason why I am asking is that I am not sure what I have to > do to get Win XP to use these instead of the one coming with 2.4.2. That`s easy: control panel Folder options File Types *scroll to py file* advanced cha

XPath/Screen Scraping Gurus..

2006-04-11 Thread bruce
Hi.. I'm not that familiar with Pythin, but I wasn wondering if there are any XPath/Python Gurus that I might be able to talk to regarding screen scraping applications... Thanks -Bruce [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

[no subject]

2009-12-21 Thread bruce
hi... the following sample is an attempt to fetch two subsequent pages from a sameple site. (it's public) the script attempts to implement a request, using the POST method, as well as as cookies. Testing using LiveHttpHeaders/Firefox indicates that the app uses post/cookies, and it doesn't work if

python - fetching, post, cookie question

2009-12-21 Thread bruce
hi... the following sample is an attempt to fetch two subsequent pages from a sameple site. (it's public) the script attempts to implement a request, using the POST method, as well as as cookies. Testing using LiveHttpHeaders/Firefox indicates that the app uses post/cookies, and it doesn't work if

whitespace in a word doc

2010-07-15 Thread Bruce
I'm trying to create a word doc using win32com. I don't get the same whitespace as when printing the same stuff in the dos window. At the terminal I manage to line up the second column like apples 5 pears7 I do this by adding whitespace characters to the strings in the first

<    1   2   3   4   >