Jump to content

Turn InstantFox Quick Search Bar searches into Alfred Workflows?


Recommended Posts

Hi All--

I am a big fan of the ability for Chrome and Firefox (with InstantFox) to store search queries for multiple websites-- the same way that Alfred can. I have already built up a large library of stored searches in InstantFox that can be exported as text (see excerpt below) but I was wondering if there is a graceful way to convert all these to an Alfred Workflow in one fell swoop?

What do you think?
Ted

--metadata-- version:--instantfox--plugin--data--
{
    "selectedLocale": "en-US",
    "defaultPlugin": "google",
    "autoSearch": {
        "json": "http://clients1.google.com/complete/search?client=chrome&hl=en&q=%q",
        "url": "http://www.google.com/search?q=%q",
        "instant": "off",
        "suggest": false,
        "minQChars": 3,
        "disabled": false,
        "def_json": "http://clients1.google.com/complete/search?client=chrome&hl=en&q=%q",
        "def_url": "http://www.google.com/search?q=%q"
    },
    "version": "2.8.3",
    "plugins": {
        "google": {
            "url": "http://www.google.com/search?q=%q",
            "json": "http://suggestqueries.google.com/complete/search?json&client=firefox&q=%q&hl=en",
            "domain": "http://www.google.com/search",
            "iconURI": "http://g.etfv.co/http://www.google.com",
            "type": "default",
            "name": "Google",
            "id": "google",
            "key": "g",
            "def_key": "g",
            "def_url": "http://www.google.com/search?q=%q",
            "def_name": "Google",
            "def_json": "http://suggestqueries.google.com/complete/search?json&client=firefox&q=%q&hl=en"
        },
        "googleimages": {
            "url": "http://www.google.com/images?q=%q",
            "json": "http://suggestqueries.google.com/complete/search?json&client=firefox&ds=i&q=%q",
            "domain": "http://www.google.com/images",
            "iconURI": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAB41BMVEUAAAB7wUJ6wUJ6wUJ6wUL1nxn1oBn1oBn1nxl6wUJ6wUJ6wUJrvUT1mxr1nxn1nxlfu0Z8wkLznhv0mhp6wUJWuUdaukfLrSv4rhX1nxl5wUJyv0TQrCnyjhz1kyH2pRj1oBl7wkNbukfzjR3zkxv1liHuMDXuGTf2rxN7wUJeu0apuDfzjhz1nBvuNizwZi/3sxP2pBh9wkG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GRhdGU6bW9kaWZ5ADIwMTItMDQtMDZUMTA6MTM6MDUrMDQ6MDD1YXewAAAAAElFTkSuQmCC",
            "type": "default",
            "name": "Google Images",
            "id": "googleimages",
            "key": "i",
            "def_key": "i",
            "def_url": "http://www.google.com/images?q=%q",
            "def_name": "Google Images",
            "def_json": "http://suggestqueries.google.com/complete/search?json&client=firefox&ds=i&q=%q"
        },
        "googlemaps": {
            "url": "http://maps.google.com/maps?q=%q",
            "json": "http://maps.google.com/maps/suggest?q=%q&cp=999&hl=en-US&gl=en-US&v=2&json=b",
            "domain": "http://maps.google.com/maps",
            "iconURI": "http://maps.gstatic.com/favicon.ico",
            "type": "default",
            "name": "Google Maps",
            "id": "googlemaps",
            "key": "m",
            "def_key": "m",
            "def_url": "http://maps.google.com/maps?q=%q",
            "def_name": "Google Maps",
            "def_json": "http://maps.google.com/maps/suggest?q=%q&cp=999&hl=en-US&gl=en-US&v=2&json=b"
        },
        "wikipedia": {
            "url": "http://en.wikipedia.org/wiki/%q",
            "json": "http://en.wikipedia.org/w/api.php?action=opensearch&search=%q",
            "domain": "http://en.wikipedia.org/wiki",
            "iconURI": "http://g.etfv.co/http://en.wikipedia.org",
            "type": "default",
            "name": "Wikipedia",
            "id": "wikipedia",
            "key": "w",
            "def_key": "w",
            "def_url": "http://en.wikipedia.org/wiki/%q",
            "def_name": "Wikipedia",
            "def_json": "http://en.wikipedia.org/w/api.php?action=opensearch&search=%q"
        },
        "youtube": {
            "url": "http://www.youtube.com/results?search_query=%q",
            "json": "http://suggestqueries.google.com/complete/search?json&client=firefox&ds=yt&q=%q",
            "domain": "http://www.youtube.com/results",
            "iconURI": "moz-anno:favicon:http://icon.xmarks.com/h3d549il-14r",
            "type": "default",
            "name": "Youtube",
            "id": "youtube",
            "key": "y",
            "def_key": "y",
            "def_url": "http://www.youtube.com/results?search_query=%q",
            "def_name": "Youtube",
            "def_json": "http://suggestqueries.google.com/complete/search?json&client=firefox&ds=yt&q=%q"
        },
        "amazon": {
            "url": "http://www.amazon.com/gp/search?ie=UTF8&keywords=%q&tag=406-20&index=aps&linkCode=ur2&camp=1789&creative=9325",
            "json": "http://completion.amazon.co.uk/search/complete?method=completion&q=%q&search-alias=aps&mkt=4",
            "domain": "http://www.amazon.com/gp/search",
            "iconURI": "http://g.etfv.co/http://www.amazon.com",
            "type": "default",
            "name": "Amazon",
            "id": "amazon",
            "key": "a",
            "def_key": "a",
            "def_url": "http://www.amazon.com/gp/search?ie=UTF8&keywords=%q&tag=406-20&index=aps&linkCode=ur2&camp=1789&creative=9325",
            "def_name": "Amazon",
            "def_json": "http://completion.amazon.co.uk/search/complete?method=completion&q=%q&search-alias=aps&mkt=4"
        },
        "ebay": {
            "url": "http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5574841060&toolid=10001&campid=5337149391&customid=&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg&icep_uq=%q",
            "json": "http://anywhere.ebay.com/services/suggest/?s=0&q=%q",
            "domain": "http://rover.ebay.com/rover/1/711-53200-19255-0/1",
            "iconURI": "http://g.etfv.co/http://rover.ebay.com",
            "type": "default",
            "name": "eBay",
            "id": "ebay",
            "key": "e",
            "def_key": "e",
            "def_url": "http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5574841060&toolid=10001&campid=5337149391&customid=&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg&icep_uq=%q",
            "def_name": "eBay",
            "def_json": "http://anywhere.ebay.com/services/suggest/?s=0&q=%q"

    },
    "contextMenu": [
        "google",
        "googleimages",
        "googlemaps",
        "wikipedia",
        "youtube",
        "amazon",
        "ebay",
        "twitter",
        "googletranslate",
        "yahoo",
        "bing",
        "amazon.com",
        "wikipedia (en)",
        "user0",
        "user1",
        "creative commons search beta",
        "user2",
        "user3",
        "duckduckgo",
        "-",
        "__search_site__"
    ]
}
Link to comment

 

Hi All--

I am a big fan of the ability for Chrome and Firefox (with InstantFox) to store search queries for multiple websites-- the same way that Alfred can. I have already built up a large library of stored searches in InstantFox that can be exported as text (see excerpt below) but I was wondering if there is a graceful way to convert all these to an Alfred Workflow in one fell swoop?

What do you think?

Ted

--metadata-- version:--instantfox--plugin--data--
{
    "selectedLocale": "en-US",
    "defaultPlugin": "google",
    "autoSearch": {
        "json": "http://clients1.google.com/complete/search?client=chrome&hl=en&q=%q",
        "url": "http://www.google.com/search?q=%q",
        "instant": "off",
        "suggest": false,
        "minQChars": 3,
        "disabled": false,
        "def_json": "http://clients1.google.com/complete/search?client=chrome&hl=en&q=%q",
        "def_url": "http://www.google.com/search?q=%q"
    },
    "version": "2.8.3",
    "plugins": {
        "google": {
            "url": "http://www.google.com/search?q=%q",
            "json": "http://suggestqueries.google.com/complete/search?json&client=firefox&q=%q&hl=en",
            "domain": "http://www.google.com/search",
            "iconURI": "http://g.etfv.co/http://www.google.com",
            "type": "default",
            "name": "Google",
            "id": "google",
            "key": "g",
            "def_key": "g",
            "def_url": "http://www.google.com/search?q=%q",
            "def_name": "Google",
            "def_json": "http://suggestqueries.google.com/complete/search?json&client=firefox&q=%q&hl=en"
        },
        "googleimages": {
            "url": "http://www.google.com/images?q=%q",
            "json": "http://suggestqueries.google.com/complete/search?json&client=firefox&ds=i&q=%q",
            "domain": "http://www.google.com/images",
            "iconURI": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAB41BMVEUAAAB7wUJ6wUJ6wUJ6wUL1nxn1oBn1oBn1nxl6wUJ6wUJ6wUJrvUT1mxr1nxn1nxlfu0Z8wkLznhv0mhp6wUJWuUdaukfLrSv4rhX1nxl5wUJyv0TQrCnyjhz1kyH2pRj1oBl7wkNbukfzjR3zkxv1liHuMDXuGTf2rxN7wUJeu0apuDfzjhz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NSswNDowMIQ8zwwAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTItMDQtMDZUMTA6MTM6MDUrMDQ6MDD1YXewAAAAAElFTkSuQmCC",
            "type": "default",
            "name": "Google Images",
            "id": "googleimages",
            "key": "i",
            "def_key": "i",
            "def_url": "http://www.google.com/images?q=%q",
            "def_name": "Google Images",
            "def_json": "http://suggestqueries.google.com/complete/search?json&client=firefox&ds=i&q=%q"
        },
        "googlemaps": {
            "url": "http://maps.google.com/maps?q=%q",
            "json": "http://maps.google.com/maps/suggest?q=%q&cp=999&hl=en-US&gl=en-US&v=2&json=b",
            "domain": "http://maps.google.com/maps",
            "iconURI": "http://maps.gstatic.com/favicon.ico",
            "type": "default",
            "name": "Google Maps",
            "id": "googlemaps",
            "key": "m",
            "def_key": "m",
            "def_url": "http://maps.google.com/maps?q=%q",
            "def_name": "Google Maps",
            "def_json": "http://maps.google.com/maps/suggest?q=%q&cp=999&hl=en-US&gl=en-US&v=2&json=b"
        },
        "wikipedia": {
            "url": "http://en.wikipedia.org/wiki/%q",
            "json": "http://en.wikipedia.org/w/api.php?action=opensearch&search=%q",
            "domain": "http://en.wikipedia.org/wiki",
            "iconURI": "http://g.etfv.co/http://en.wikipedia.org",
            "type": "default",
            "name": "Wikipedia",
            "id": "wikipedia",
            "key": "w",
            "def_key": "w",
            "def_url": "http://en.wikipedia.org/wiki/%q",
            "def_name": "Wikipedia",
            "def_json": "http://en.wikipedia.org/w/api.php?action=opensearch&search=%q"
        },
        "youtube": {
            "url": "http://www.youtube.com/results?search_query=%q",
            "json": "http://suggestqueries.google.com/complete/search?json&client=firefox&ds=yt&q=%q",
            "domain": "http://www.youtube.com/results",
            "iconURI": "moz-anno:favicon:http://icon.xmarks.com/h3d549il-14r",
            "type": "default",
            "name": "Youtube",
            "id": "youtube",
            "key": "y",
            "def_key": "y",
            "def_url": "http://www.youtube.com/results?search_query=%q",
            "def_name": "Youtube",
            "def_json": "http://suggestqueries.google.com/complete/search?json&client=firefox&ds=yt&q=%q"
        },
        "amazon": {
            "url": "http://www.amazon.com/gp/search?ie=UTF8&keywords=%q&tag=406-20&index=aps&linkCode=ur2&camp=1789&creative=9325",
            "json": "http://completion.amazon.co.uk/search/complete?method=completion&q=%q&search-alias=aps&mkt=4",
            "domain": "http://www.amazon.com/gp/search",
            "iconURI": "http://g.etfv.co/http://www.amazon.com",
            "type": "default",
            "name": "Amazon",
            "id": "amazon",
            "key": "a",
            "def_key": "a",
            "def_url": "http://www.amazon.com/gp/search?ie=UTF8&keywords=%q&tag=406-20&index=aps&linkCode=ur2&camp=1789&creative=9325",
            "def_name": "Amazon",
            "def_json": "http://completion.amazon.co.uk/search/complete?method=completion&q=%q&search-alias=aps&mkt=4"
        },
        "ebay": {
            "url": "http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5574841060&toolid=10001&campid=5337149391&customid=&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg&icep_uq=%q",
            "json": "http://anywhere.ebay.com/services/suggest/?s=0&q=%q",
            "domain": "http://rover.ebay.com/rover/1/711-53200-19255-0/1",
            "iconURI": "http://g.etfv.co/http://rover.ebay.com",
            "type": "default",
            "name": "eBay",
            "id": "ebay",
            "key": "e",
            "def_key": "e",
            "def_url": "http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=9&pub=5574841060&toolid=10001&campid=5337149391&customid=&icep_sellerId=&icep_ex_kw=&icep_sortBy=12&icep_catId=&icep_minPrice=&icep_maxPrice=&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg&icep_uq=%q",
            "def_name": "eBay",
            "def_json": "http://anywhere.ebay.com/services/suggest/?s=0&q=%q"

    },
    "contextMenu": [
        "google",
        "googleimages",
        "googlemaps",
        "wikipedia",
        "youtube",
        "amazon",
        "ebay",
        "twitter",
        "googletranslate",
        "yahoo",
        "bing",
        "amazon.com",
        "wikipedia (en)",
        "user0",
        "user1",
        "creative commons search beta",
        "user2",
        "user3",
        "duckduckgo",
        "-",
        "__search_site__"
    ]
}

 

It depends on what languages you are familiar with. It appears that the data you have is formatted as json. Python and PHP definitely support parsing json data. I would assume Ruby would as well but my knowledge of Ruby is extremely limited.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...