Skip to content

Instantly share code, notes, and snippets.

@jkishner
Last active August 29, 2015 14:18

Revisions

  1. jkishner renamed this gist Mar 31, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. jkishner revised this gist Mar 31, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion create a wallabag import link
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    #!/usr/bin/env python

    # -*- coding: utf-8 -*-
    # I am more than likely importing more libraries than are necessary
    import urllib2
    import urllib
    import re
    @@ -13,6 +14,7 @@ import base64
    # Grab url (or whatever) from the clipboard
    u = clipboard.get()

    link = "http://jeffreykishner.com/wallabag/?action=add&autoclose=true&url="
    # replace everything up to the ? with the URL of your wallabag installation
    link = "YOURDOMAIN/wallabag/?action=add&autoclose=true&url="
    link += base64.b64encode(u)
    webbrowser.open(link)
  3. jkishner revised this gist Mar 31, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions create a wallabag import link
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@ import clipboard
    import urlparse
    import notification
    import webbrowser
    import base64

    # Grab url (or whatever) from the clipboard
    u = clipboard.get()
  4. jkishner created this gist Mar 31, 2015.
    17 changes: 17 additions & 0 deletions create a wallabag import link
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #!/usr/bin/env python

    # -*- coding: utf-8 -*-
    import urllib2
    import urllib
    import re
    import clipboard
    import urlparse
    import notification
    import webbrowser

    # Grab url (or whatever) from the clipboard
    u = clipboard.get()

    link = "http://jeffreykishner.com/wallabag/?action=add&autoclose=true&url="
    link += base64.b64encode(u)
    webbrowser.open(link)