From owner-freebsd-questions@FreeBSD.ORG Wed Dec 3 01:23:59 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ADB67C94 for ; Wed, 3 Dec 2014 01:23:59 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7118F1A1 for ; Wed, 3 Dec 2014 01:23:59 +0000 (UTC) Received: from r56.edvax.de (port-92-195-18-117.dynamic.qsc.de [92.195.18.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 28FCC2785A; Wed, 3 Dec 2014 02:23:50 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id sB31NnXB003762; Wed, 3 Dec 2014 02:23:50 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 3 Dec 2014 02:23:49 +0100 From: Polytropon To: Sean DuBois Subject: Re: firefox bookmarks verifier Message-Id: <20141203022349.8c81b802.freebsd@edvax.de> In-Reply-To: <20141203005232.GA64389@3006.local> References: <547E4CD8.4010509@gmail.com> <20141203005232.GA64389@3006.local> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions , Ernie Luzar X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 01:23:59 -0000 On Tue, 2 Dec 2014 18:52:32 -0600, Sean DuBois wrote: > It doesn't solve your exact problem, but it is how I would solve the > problem. I would loop over your bookmarks and filter links that return a > 404 etc.. That would have been my suggestion, too. But be aware that just checking for 404 often isn't sufficient, because some error pages indicate things like "oops, article or blog post not found" which is a ("valid") 200 response, but the requested content simply isn't there anymore... So maybe you would extract the fields "bookmark title" and "bookmark URI", then use wget to dump the page, grep for and compare. Otherwise, wget --spider would probably be enough. For those entries still valid, create a new bookmark file that can then be re-imported into Firefox (or exchanged for the one that was the original source). The original format can be recreated quite easily; if I remember correctly, Firefox stores bookmarks in HTML or JSON. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...