Jump to content
Jasondm007

SSRN & Web Search - Search URL?

Recommended Posts

Does anybody know how to set up the Web Search feature in Alfred to work with SSRN (Social Science Research Network)? For those unfamiliar with SSRN, it's website for sharing research (usually early drafts and things in the public domain). Unfortunately, while it's now owned by Elsevier, it's still probably the most used repository for pre-publication research papers.

 

When I run search either through its standard or advanced search pages, the search terms are not located in the URL. Unlike Google and other search-related websites, I also can't seem to find any documentation on its search API, etc.

 

For example, when I search for the terms "test search" using the advanced search, the search results are communicated through the following URL: https://papers.ssrn.com/sol3/results.cfm?RequestTimeout=50000000

 

Given these constraints, does anybody have any ideas for how to set up Alfred's Web Search feature with SSRN? Thanks in advance!

Share this post


Link to post
2 hours ago, Jasondm007 said:

Given these constraints, does anybody have any ideas for how to set up Alfred's Web Search feature with SSRN?

 

Quick tip: Although some sites use POST for their search forms (so the parameters aren't in the URL), many also work if you add the parameters to the URL instead. Including this one:

 

https://papers.ssrn.com/sol3/results.cfm?txtKey_Words=liquidity

Share this post


Link to post

You need to view the source of the page and look for the name attribute of the search text entry box itself.  

 

In this case it's here:

 

<form class="header-search-form" id="searchForm1" action="https://papers.ssrn.com/sol3/results.cfm" method="post" target="_top" name="formQuickSearch">
<i class="icon icon-gizmo-search" role="button" aria-label="Search eLibrary"></i>
<input type="text" class="header-search-input" aria-label="Search eLibrary" placeholder="Search eLibrary" name="txtKey_Words" id="txtKeywords" required>
<input type="hidden" name="isQuickSearch" value="true">
</form>

 

Unfortunately with all the JavaScript cluttering most web pages, it's become a bit harder to reverse engineer searches this way compared to 10-15 years ago when the web was s lot cleaner.

Share this post


Link to post

What @dfay says. Right-click on the text field and Inspect Element. Grab the URL from the form element’s “action” attribute.

 

Sometimes you need to add a couple of other values from other form fields.

 

Share this post


Link to post

@dfay @deanishe Sorry to bother you guys about this again, but it appears as though SSRN has updated its search form - breaking the Search URL used by Alfred (below):

 

https://papers.ssrn.com/sol3/results.cfm?txtKey_Words={query}

 

Now, when searching, I get the usual page not found notice.

 

I tried looking at the code from the form, but it looks identical to what @dfay posted above (action, name, etc.).

 

Do guys have any idea what they might have changed and where I might look next? Thanks for your help!!

Share this post


Link to post

Weird, I still receive the error below:

 

error.jpg.0c29099e0c9be59713089f6c6958acb9.jpg

 

 

Do you have a different Alfred setup than me?

 

setup.jpg.78bab9dd15938a7d8de0a36289ee9651.jpg

 

I'm not sure if it's relevant, but I use Safari as my default browser.

 

Thanks again!!

Edited by Jasondm007

Share this post


Link to post

Something's gotta be messed up on their end.  The URL above still works fine for my on Safari for iPad, where I tested it earlier.  But Safari for Mac produces the error message above. Same with Firefox for Mac.  I can even be viewing results on the iPad then use Handoff to open the same page on the Mac & get the error.

 

Strangely, you can enable the Developer menu then click

Develop > User Agent > Safari - iOS 11.0 - iPad 

and it will work.

 

Bizarre.  I'd email the site admin b/c I doubt they intentionally want the site to work only with Safari for iPad.

 

Or you can try this workflow and modify it to add your search or something:

 

Edited by dfay

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.

Guest
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...