How can I access the bookmarks from the command line?

User Help for Mozilla Firefox
Locked
Yuzem
Posts: 6
Joined: May 10th, 2008, 10:03 am

How can I access the bookmarks from the command line?

Post by Yuzem »

I need to know that to add firefox 3 compatibility to an <a href="http://www.gnomefiles.org/app.php/Avatar_Factory">application</a>.

In previous version I used something like this:
egrep "imdb.com|youtube.com" "$(find ~/.mozilla/firefox/ -name 'bookmarks.html')"

That returns all bookmark for youtube and imdb but it does not work with version 3.
I know that the file now is places.sqlite

Is it possible?
User avatar
trolly
Moderator
Posts: 39851
Joined: August 22nd, 2005, 7:25 am

Post by trolly »

http://www.sqlite.org/download.html

In the precompiled binaries section is a command line tool.
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
Yuzem
Posts: 6
Joined: May 10th, 2008, 10:03 am

Post by Yuzem »

Thanks but I can get it to do what I want.

It tells me that the database is locked:
Error: database is locked
If I close firefox it tells me:
Unable to open database ".mozilla/firefox/adnu2zvf.default/places.sqlite": file is encrypted or is not a database
User avatar
trolly
Moderator
Posts: 39851
Joined: August 22nd, 2005, 7:25 am

Post by trolly »

The windows version seems to work. :?:
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
Locked