Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion use of .first() to select a 'name' child element?

Received: by 10.229.215.147 with SMTP id he19mr1276491qcb.10.1300134450736;
        Mon, 14 Mar 2011 13:27:30 -0700 (PDT)
X-BeenThere: beautifulsoup@googlegroups.com
Received: by 10.229.70.202 with SMTP id e10ls1793517qcj.1.p; Mon, 14 Mar 2011
 13:27:29 -0700 (PDT)
Received: by 10.229.103.21 with SMTP id i21mr1269109qco.28.1300134449754;
        Mon, 14 Mar 2011 13:27:29 -0700 (PDT)
Received: by 10.229.103.21 with SMTP id i21mr1269108qco.28.1300134449734;
        Mon, 14 Mar 2011 13:27:29 -0700 (PDT)
Return-Path: <leonard.richard...@gmail.com>
Received: from mail-vw0-f51.google.com (mail-vw0-f51.google.com [209.85.212.51])
        by gmr-mx.google.com with ESMTPS id c2si1236164qca.0.2011.03.14.13.27.29
        (version=TLSv1/SSLv3 cipher=OTHER);
        Mon, 14 Mar 2011 13:27:29 -0700 (PDT)
Received-SPF: pass (google.com: domain of leonard.richard...@gmail.com designates 209.85.212.51 as permitted sender) client-ip=209.85.212.51;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of leonard.richard...@gmail.com designates 209.85.212.51 as permitted sender) smtp.mail=leonard.richard...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by mail-vw0-f51.google.com with SMTP id 16so2801098vws.38
        for <beautifulsoup@googlegroups.com>; Mon, 14 Mar 2011 13:27:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:content-type:content-transfer-encoding;
        bh=QOYEHb8rpxFqn/3gk3VDS0BgXaqls3yFcmDeyyC8A1Q=;
        b=SiSjbFaiN+Gw9Coxfh7w7TAvBmfc5m9BfNYbWc9EqApsKBqpspe+vdPXAQJgh+AtWR
         ARmOjUpJ8ACGTf/MIE7GgGIRp61zTGiBg5ZaTs1n30YTKA4sK/dAMIopqvyLVYfZnvLI
         W7q2yDoTVbZRcqsz9s/4xnH45cLYNJsyBt99A=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type:content-transfer-encoding;
        b=MjZh278csDy/Bzc+EX/t0erL/UnAjzIj4y/lQ4/hTZwhOJysn3FAlthJRUCW2pEuyK
         +zGidvYY7BksCtpRGGRSG/fods0UdVSm79rhW7nJshvRbdVIcJnncEot8RIHNc+5OSJY
         7XTLKafD69iutfveclKP0XnqMQuA86HfQsoNI=
MIME-Version: 1.0
Received: by 10.220.66.139 with SMTP id n11mr3658442vci.87.1300134449240; Mon,
 14 Mar 2011 13:27:29 -0700 (PDT)
Received: by 10.220.176.5 with HTTP; Mon, 14 Mar 2011 13:27:29 -0700 (PDT)
In-Reply-To: <b5a0df5d-4b1c-4f1a-a259-c8440d4a2...@f36g2000pri.googlegroups.com>
References: <b5a0df5d-4b1c-4f1a-a259-c8440d4a2...@f36g2000pri.googlegroups.com>
Date: Mon, 14 Mar 2011 16:27:29 -0400
Message-ID: <AANLkTikvuUKEnLu+AeyZXFeqAAS+o3N+AG=1fDog-...@mail.gmail.com>
Subject: Re: use of .first() to select a 'name' child element?
From: Leonard Richardson <leonard.richard...@gmail.com>
To: beautifulsoup@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

> =A0 =A0> If you're looking for tag names that aren't valid Python
> identifiers (like hyphenated-name), you need to use first.

This is a typo. (It was accurate for BS2 but was not changed for BS3.)
 You should use find() instead of first().

Leonard