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:
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:[
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
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
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
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
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
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
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
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
: 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
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..
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
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"...
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
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/
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
. 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
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,
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
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
>>
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
/ideas/etc...
thanks
-bruce
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
#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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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'
@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
.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
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
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
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
.@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
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/
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
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
@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
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
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
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
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
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]
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
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/
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
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
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
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
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
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
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
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
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
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'
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
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
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
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("
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:
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
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
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
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
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..
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
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:
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
101 - 200 of 304 matches
Mail list logo