Many thanks, Martin! I had indeed skipped creating the tree object and a
few other things you pointed out. Here is my finished simple code that
actually works:
from lxml import html
import requests
page = requests.get("http://joplin.craigslist.org/search/w4m";)
tree = html.fromstring(page.text)
t
Hi there Anthony,
I'm pretty new to lxml but I pretty much thought I'd understood
the basics. However, for some reason, my first attempt at using it
is failing miserably.
Here's the deal:
I'm parsing specific page on Craigslist (
http://joplin.craigslist.org/search/rea) and trying to retrei
On Sat, Aug 22, 2015 at 5:05 PM, Anthony Papillion wrote:
> Hello Everyone,
>
> I'm pretty new to lxml but I pretty much thought I'd understood the basics.
> However, for some reason, my first attempt at using it is failing miserably.
>
> Here's the deal:
>
> I'm parsing specific page on Craigslis
Hello Everyone,
I'm pretty new to lxml but I pretty much thought I'd understood the basics.
However, for some reason, my first attempt at using it is failing miserably.
Here's the deal:
I'm parsing specific page on Craigslist (
http://joplin.craigslist.org/search/rea) and trying to retreive the
In a message of Sat, 22 Aug 2015 14:32:56 +0100, Alan Gauld writes:
>But maybe some questions on a Tix (or Tk) forum might
>get more help? Once you know how to do it in native
>Tcl/Tk/Tix you can usually figure out how to do it
>in Python.
>
>--
>Alan G
I asked the question on tkinter-discuss, bu
On 22/08/15 11:43, Laura Creighton wrote:
How can I filter out these hidden directories?
Help(tkFileDialog) doesn't help me as it just shows **options, but
doesn't show what these options might be.
tix (tkinter extensions) https://wiki.python.org/moin/Tix
have some more file dialogs, so maybe
On Fri, Aug 21, 2015 at 1:04 PM, Jon Paris wrote:
>
> import sys
> x = sys.maxsize
> print ("Max size is: ", x)
> y = (x + 1)
> print ("y is", type(y), "with a value of", y)
>
> Produces this result:
>
> Max size is: 9223372036854775807
> y is with a value of 9223372036854775808
>
> I was expect
In a message of Sat, 22 Aug 2015 12:20:31 +1000, Chris Roy-Smith writes:
>Hi,
>environment: Python 2.7, Ubuntu 12.4 Linux
>
>I am trying to get the list of directories shown by
>tkFileDialog.askdirectory to not show hidden files (starting with .)
>
>this code results in lots of hidden directories
Hi,
environment: Python 2.7, Ubuntu 12.4 Linux
I am trying to get the list of directories shown by
tkFileDialog.askdirectory to not show hidden files (starting with .)
this code results in lots of hidden directories listed in the interface
making things harder than they need to be for the use
boB Stepp wrote:
> In the cold light of morning, I see that in this invocation, the path
> is wrong. But even if I correct it, I get the same results:
>
> e:\Projects\mcm>py -m unittest ./test/db/test_manager.py
[...]
> ValueError: Empty module name
Make sure that there are files
./test/__init
In a message of Sat, 22 Aug 2015 17:00:55 +1000, "Steven D'Aprano" writes:
>On Fri, Aug 21, 2015 at 11:29:52PM +0200, Roel Schroeven wrote:
>> Joel Goldstick schreef op 2015-08-21 23:22:
>> >so:
>> >print -max(-A, -B)
>>
>> That's what I mean, yes. I haven't tried it, but I don't see why it
>
On Fri, Aug 21, 2015 at 11:29:52PM +0200, Roel Schroeven wrote:
> Joel Goldstick schreef op 2015-08-21 23:22:
> >so:
> >print -max(-A, -B)
>
> That's what I mean, yes. I haven't tried it, but I don't see why it
> wouldn't work.
It won't work with anything which isn't a number:
py> min("hell
12 matches
Mail list logo