From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: filebat Mark Newsgroups: gmane.emacs.help Subject: How to get title of web page by url? Date: Tue, 27 Jul 2010 20:14:08 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd32c4e27c66e048c5d70c1 X-Trace: dough.gmane.org 1280232883 26545 80.91.229.12 (27 Jul 2010 12:14:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2010 12:14:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 27 14:14:41 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Odj3Q-0002M0-Gk for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jul 2010 14:14:40 +0200 Original-Received: from localhost ([127.0.0.1]:52916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Odj3P-0007BT-KQ for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jul 2010 08:14:39 -0400 Original-Received: from [140.186.70.92] (port=57410 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Odj2x-0007BE-C5 for help-gnu-emacs@gnu.org; Tue, 27 Jul 2010 08:14:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Odj2w-0008UD-8F for help-gnu-emacs@gnu.org; Tue, 27 Jul 2010 08:14:11 -0400 Original-Received: from mail-px0-f169.google.com ([209.85.212.169]:33473) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Odj2w-0008U1-3j for help-gnu-emacs@gnu.org; Tue, 27 Jul 2010 08:14:10 -0400 Original-Received: by pxi7 with SMTP id 7so847112pxi.0 for ; Tue, 27 Jul 2010 05:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=xlzvJdbNBE/ycVNkcCWDYTMQ6UT8p+sL8HBgaJxGwRg=; b=CbKBAuY1lb7GExOWizL6xVM5+8E7GLc7gUvAR3i3gv/TGKjUxt3xe6O4nVtvSDEik8 0nrG61YOeqTRRHkI+t3T3vfdxPI5JjRcKLYiC/83auWblMGzzf2F3dmA05CMJlQoGzi4 IHvdnLyqXuQhLm4UNw+Qu7FYsDTKqxcEcuFGg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qs2HVchOYpQ4q4AkPAR9UiZVoOvp2SVtKtzIBfpMgMBXpiSrNNqex+du9rQTriDWNg +HwEWbJYj2vktT2Waz0YeWt5BNFkURAzg4+nBAUUl20PgvX7+tOuzupMVgJ8X0cV/0zv Io8/zWHoXFilh3T8q+gO2VjkBgOhaN5TigMm4= Original-Received: by 10.142.207.9 with SMTP id e9mr10231168wfg.111.1280232848344; Tue, 27 Jul 2010 05:14:08 -0700 (PDT) Original-Received: by 10.142.209.12 with HTTP; Tue, 27 Jul 2010 05:14:08 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74304 Archived-At: --000e0cd32c4e27c66e048c5d70c1 Content-Type: text/plain; charset=ISO-8859-1 Hi emacsers I'm wondering is there any existing lisp code snippet to get title of web page by url. Such as, given "http://www.emacswiki.org/emacs/Git", we will get the title of this web page, which is "EmacsWiki: Git:". Function of w3m-current-title is quite close, but a standalone lisp function is much preferred. -- Thanks & Regards Denny Zhang --000e0cd32c4e27c66e048c5d70c1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi emacsers

I'm wondering is there any existing lisp code snippe= t to get title of web page by url.
Such as, given "http://www.emacswiki.org/emacs/Git"= , we will get the title of this web page, which is "EmacsWiki: Git:&qu= ot;.

Function of w3m-current-title is quite close, but a standalone lisp fun= ction is much preferred.

--
Thanks & Regards

Denny Zh= ang

--000e0cd32c4e27c66e048c5d70c1--