Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 27, 2016, 03:47:53 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: List bookmarks url's to a txt file  (Read 3579 times)

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
List bookmarks url's to a txt file
« on: February 14, 2014, 08:53:29 AM »
List bookmarks url's to a txt file

I have seen import/export to html or other format files, but not the simple possibility to export all the bookmarks or groups to a txt file.

Is it possible and how ?

Best Regards

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,629
    • View Profile
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #1 on: February 14, 2014, 09:07:57 AM »
Which browser are you using?

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #2 on: February 14, 2014, 10:55:48 AM »
 :o

with the script from mouser now chrome, opera, yandex, internet explorer, safari.

But the main is Firefox (Waterfox for 64 bits....)

Now i am browsing in Chrome.

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #3 on: February 14, 2014, 12:26:37 PM »
the important point is doing so. Because I can import or export the bookmarks.
so decide by yourself how do you want the things to be done. .....
 :-*

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,158
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #4 on: February 14, 2014, 12:58:06 PM »
As far as I can tell the Opera bookmarks file, bookmarks.adr, is ordinary text.  You can import, say Firefox bookmarks, then open bookmarks.adr.  All the Firefox bookmarks will be under a heading Firefox Bookmarks, or something similar.  When opened by Opera all the imported Firefox bookmarks are in a folder of that name.  I have many times, just deleted that header and a couple of lines above it, to make the Firefox bookmarks become all the Opera bookmarks.

But anyway, for now as a stopgap, you can import with Opera then just copy and paste with a text editor to save as a plain text.

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #5 on: February 14, 2014, 01:24:22 PM »
As far as I can tell the Opera bookmarks file, bookmarks.adr, is ordinary text.  You can import, say Firefox bookmarks, then open bookmarks.adr.  All the Firefox bookmarks will be under a heading Firefox Bookmarks, or something similar.  When opened by Opera all the imported Firefox bookmarks are in a folder of that name.  I have many times, just deleted that header and a couple of lines above it, to make the Firefox bookmarks become all the Opera bookmarks.

But anyway, for now as a stopgap, you can import with Opera then just copy and paste with a text editor to save as a plain text.


I see that we can export to an html file, but the content is for filter, not the list of the urls
So
In opera i will try and comment.
Because perhaps we need the method to extract the url's (certain url's) from the html file or any other type.

 :-*

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,158
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #6 on: February 14, 2014, 02:55:39 PM »
When you import into Opera, it adds bookmarks to its bookmarks.adr file.  It's plain text.  Then it's cut and paste, not export.

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #7 on: February 14, 2014, 08:02:28 PM »
I got the file.
But now I have to extract the url's
I have forgotten this as usual, but I think i have done this some time ago.....
Researching..... scanning the memory

 :-[

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,158
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #8 on: February 15, 2014, 07:58:18 AM »
They seem to start with "url=" so it should be fairly easy with any script that has the equivalent of If StringLeft(urlstr,4) = "url=" then yadda yadda

TaoPhoenix

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,548
    • View Profile
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #9 on: February 15, 2014, 09:36:38 AM »
Is there a Firefox plugin that exports out the bookmark lists?


MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,158
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #10 on: February 15, 2014, 02:04:51 PM »
Is there a Firefox plugin that exports out the bookmark lists?



I haven't heard of one. I'm using Opera Import of Firefox bookmarks.  But Opera would do the same for anything it knows how to import. It will end up as part of bookmarks.adr.

I think there are converters that go between several formats.   But they are stand-alone programs. But if you find one with Opera as output it should generate the file.  I don't know if it will complain if it doesn't find opera.exe anyplace on the drive.

Edit: I seem to remember Transmute worked pretty well.  But it's not free.  Also I still ended up with all the Firefox bookmarks in a folder.  I ended up editing bookmarks.adr just as if I imported with Opera.

 

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #11 on: February 15, 2014, 02:41:09 PM »
They seem to start with "url=" so it should be fairly easy with any script that has the equivalent of If StringLeft(urlstr,4) = "url=" then yadda yadda

What script ?

I am solving now with opera. I obtain with pspad a file with all the urls from the exported file from Opera.
It easy :
"To extract URLs into new file use:
open search dialog
click on the button with ! next to search field and choose Find URL
Press Copy button"
I was thinking to obtain the list from firefox in a html file similar way and then apply the Skwire's script to delete the lines not necessary.

controtexttool.ahk

I have revised the post in pspad and they add this to locate the urls preceeded by a string :

"Modify the regular expression by adding string on the begin what will idenfify what you want"

I usually get a headache when trying regex so.......

I make copy/paste of the regular expression used by pspad to find any url :

(news|http|ftp|https):\/\/[\w\-_]+(\.[\w]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?


So....

What must I add to find only the preceed by the string :

"<DT><A HREF="" , where my "" are not for search and the ending " is the beginning " of the url to find.....

How can i do that ?

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,158
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #12 on: February 15, 2014, 03:39:32 PM »
I don't know why you want to do it the hard way.  In Opera Manage Bookmarks, File, Inport Firefox bookmarks, browse to .html file.

Other browser, export as html.

in AutoIt3 compile as a console app and it will output the urls to the command line.  Put exact path of "bookmarks.adr" file

#include <File.au3>
Dim $array
If Not _FileReadToArray("C:\bookmarks.adr", $array) Then
MsgBox(0,"Bookmarks", "Error " & @error)
Exit
EndIf
For $x = 1 To $array[0]
$array[$x] = StringStripWS($array[$x],1)
If StringLeft($array[$x],4) = "URL=" Then
ConsoleWrite(StringMid($array[$x],5) & @CRLF)
EndIf
Next

Edit: Changed StringMid start pos to 5.  That should be the char after the "URL=" to the end of the string.

Edit2: new copy strips leading WS to get rid of tabs

Edit3:  seems to work now.  At least it spits out some urls.  :)
« Last Edit: February 15, 2014, 04:11:08 PM by MilesAhead »

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #13 on: February 15, 2014, 05:07:33 PM »
please consider put the regex code for pspad.

I will try the script too, but seems more practical with pspad.

Best Regards

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,158
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #14 on: February 16, 2014, 08:03:01 AM »
I've never used pspad.  Also I'm not skilled in RegEx.  I'd ask on ahk forum or use one of the RegEx Tester programs.  There's a ton shows up in search.

Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #15 on: February 17, 2014, 07:02:13 PM »
With pspad

Edit-sort-delete duplicates-Accept

That's all !!!!

Best Regards

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,158
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #16 on: February 18, 2014, 09:28:20 AM »
With pspad

Edit-sort-delete duplicates-Accept

That's all !!!!

Best Regards


EditPad Lite 7 can do the same thing.  I used PsPad for html since it has a previewer that simulates IE.  That way I don't have to bring up IE just to test.  But anyway, PsPad is ok.  A bit quirky though. I've used EditPad Lite for plain text for years.  The font settings can be annoying when you forget how you got there. I don't know why there's no button to permanently set the font on the toolbar.  But other than that it's ok for a freebie.  :)



Contro

  • Participant
  • Joined in 2007
  • *
  • Posts: 2,565
    • View Profile
    • Donate to Member
Re: List bookmarks url's to a txt file
« Reply #17 on: February 18, 2014, 10:08:15 AM »
With pspad

Edit-sort-delete duplicates-Accept

That's all !!!!

Best Regards


EditPad Lite 7 can do the same thing.  I used PsPad for html since it has a previewer that simulates IE.  That way I don't have to bring up IE just to test.  But anyway, PsPad is ok.  A bit quirky though. I've used EditPad Lite for plain text for years.  The font settings can be annoying when you forget how you got there. I don't know why there's no button to permanently set the font on the toolbar.  But other than that it's ok for a freebie.  :)




Understood Miles
Best Regards
 :P