Jump to content

Recommended Posts

Hi there. I am a powerpack user since many years, but only use Alfred for basic functions. I have setup on my own about 5 Web searches, but have come across something that looks like it might need some regular expressions, or a combination of Web Search and Workflow, or even some automation. it is however beyond me. So I post it here in the hope that some generous programming guru sees how easy it might be and posts the solution.


My webs search example is "mag greyhound" represented by the search URL https://www.magnetdl.com/g/{query}/se/desc/ which goes off to https://www.magnetdl.com/g/greyhound/se/desc/ . 

Yo see the problem that it is not replicable, since the "g" is stripped from the first letter of the search term. Does anyone know how to ammend the search URL with a regular expression, or is this exactly the realm of the workflow ?


Im lost, and would like to learn, but Im not a coder.


Any help or tips would be greatly appreciated. 

Share this post

Link to post
Posted (edited)

Hi @SimonAndrews, welcome to the forum.


The correct websearch URL for Alfred is https://www.magnetdl.com/search/?q={query}&m=1&x=0&y=0


Bluntly put, you did it a bit wrong. The site is doing a redirect. You can get the "real" URL by looking at the network request list in the web inspector, or constructing it based on the form values in the page source:



Edited by deanishe

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...