Jump to content

Search my own site inline with Alfred 4


Recommended Posts

Good evening everyone.

 

Many times I happen to search my own blog, to insert links to previous posts into a new one mostly.

 

I would like to search inline with Alfred 4, that would be really handy.

 

The search URL is the following:

 

https://blog.solignani.it/?s=test

 

where «test» is obviously the search string.

 

Is there a way I can implement it?

 

Any idea, tip, hint?

 

Thank you.

Link to comment
36 minutes ago, tsolignani said:

Any idea, tip, hint?

 

If you want to show the search results inline, then you either need to add a proper search API to your site that can return search results as machine-readable data, or you need to write an HTML parser than can parse the results page into machine-readable data.

 

An HTML parser shouldn't be too difficult to write (as those things go) because the HTML contains schema.org tags.

Link to comment
19 minutes ago, tsolignani said:

Going through google would be a feasible idea?

 

Yes, in theory. But Google's search API is fairly expensive, and parsing its HTML (instead of paying) is much harder than parsing yours. And you still need to write code.

 

You can't display your own dynamic results in Alfred without coding.

Edited by deanishe
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...