[Tutor] Problem getting data using beautifulsoup4 + python 3.4.1

Juan Christian juan0christian at gmail.com
Thu Sep 18 23:28:44 CEST 2014


On Thu, Sep 18, 2014 at 6:10 PM, Peter Otten <__peter__ at web.de> wrote:
>
> The <div ...> doesn't have an href attribute, its child <a ...> has. Try
>
> [a.attrs["href"] for a in s.select("div.authorline a")]


OMG, I completely forgot about the 'a'... http://goo.gl/A8sRLT

Thanks! 100% Working.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140918/dddf1236/attachment.html>


More information about the Tutor mailing list