Re: [Tutor] Problem using lxml

2015-08-23 Thread Stefan Behnel
Anthony Papillion schrieb am 23.08.2015 um 01:16: from lxml import html import requests page = requests.get(http://joplin.craigslist.org/search/w4m;) tree = html.fromstring(page.text) While requests has its merits, this can be simplified to tree =

[Tutor] Problem using lxml

2015-08-22 Thread Anthony Papillion
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

Re: [Tutor] Problem using lxml

2015-08-22 Thread Joel Goldstick
On Sat, Aug 22, 2015 at 5:05 PM, Anthony Papillion papill...@gmail.com 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

Re: [Tutor] Problem using lxml

2015-08-22 Thread Martin A. Brown
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