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
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
Many thanks Ben! That is exactly what I was looking for and it's super
easy. Thanks again!
On Fri, Aug 14, 2015 at 5:36 PM, Ben Finney
wrote:
> Anthony Papillion writes:
>
> > I'm creating an archive of a directory using shutil.make_archive and
> > need to skip a
Hello Everyone,
I'm creating an archive of a directory using shutil.make_archive and need
to skip a single file if it is present in that directory. Is there a way to
do this or should I be looking to ZipFile to meet this need?
Thanks
___
Tutor maillist
On Fri, Feb 24, 2012 at 8:08 PM, Steven D'Aprano
wrote:
>
> Are you aware that the database connection gets made, but not stored
> anywhere? Once the Manager instance is created, the database connection is
> thrown away.
>
> My guess is that you mean to use self.conn instead of conn in the above.
On Fri, Feb 24, 2012 at 5:55 PM, Prasad, Ramit
wrote:
>
> How are you running this? I assume from an IDE because this should most
> likely cause an error. I would recommend trying to run your python script
> from the commandline which is much more likely to print an error.
>
> $python your_script.
On Fri, Feb 24, 2012 at 6:07 PM, Alan Gauld wrote:
>
> Add a trace to see if the method ever gets called
The method is definitely getting called. If I remove the attempt to
get the widgets text and replace it with
print "btnSearch has been clicked"
The method is called and the message is printe
On Fri, Feb 24, 2012 at 5:10 PM, Prasad, Ramit
wrote:
>
> Please post a more significant code sample as I have no idea from this,
> but at least one of those should have given you an error. Always include
> the full error (including stacktrace) you get from Python. Use copy/paste
> and do not try
Hi Everyone,
I'm learning pyGtk and am developing my first application. I'm trying to
check if a GtkEntry is empty and I'm using the following code:
if txtSearch.get_text() == "":
print "The entry is empty"
This didn't work. So I thought, maybe I need to reference self and tried:
if self.tx