Date: Wed, 3 Dec 2014 02:23:49 +0100 From: Polytropon <freebsd@edvax.de> To: Sean DuBois <sean@siobud.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org>, Ernie Luzar <luzar722@gmail.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <title> 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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141203022349.8c81b802.freebsd>