I am using a search engine www.sciencedirect.com in part of my code. I want to search for keywords and find how many results there are.
My code works fine, all I need is the URL to submit search queries, Initially I tested the code with the basic search function and got it to work, basically its just:
http://www.sciencedirect.com/science?[inputname]=[value]
I can't just use the URL of the results page, as you would with Google, so I take the values from the HTML of the search page
I now want to use the advanced search page, which included more options including the 'source' option which is the cause of the trouble. Instead of the <input> function the source uses the <select> function.
My current approach for making the search URL does not work, I am able to change the Source but the page returns the error a source must be selected.
My current URL is
Any suggestions on how to change the above URL so it works?
My code works fine, all I need is the URL to submit search queries, Initially I tested the code with the basic search function and got it to work, basically its just:
http://www.sciencedirect.com/science?[inputname]=[value]
I can't just use the URL of the results page, as you would with Google, so I take the values from the HTML of the search page
Code:
<input type="hidden" name="_ob" value="MiamiSearchURL"> <input type="hidden" name="_method" value="submitForm"> <input type="hidden" name="_acct" value="C000053194"> <input type="hidden" name="_temp" value="all_search.tmpl"> <input type="hidden" name="md5" value="9e299e9289462d7805ab0a5dcc9cff5c"> <input type="hidden" name="test_alid" value="">
Code:
<select name="Subscribed" id="Subscribed" size="1" onChange="checkFavoriteJournals(this, 'sources','Y', '');" style="width:200px;"> <option value="0" SELECTED>All sources</option> <option value="1" >Subscribed sources</option> <option value="2" >My Favorite sources</option> </select>
My current URL is
Code:
http://www.sciencedirect.com/science?_ob=MiamiSearchURL&_method=submitForm&_acct=C000053194&_temp=all_search.tmpl&md5=9e299e9289462d7805ab0a5dcc9cff5c&test_alid=&keywordOpt=TITLE-ABSTR-KEY&source=srcJrl=1&source=srcBk=1&Subscribed=0&onchange=Y&srcSel=1&DateOpt=2&SearchText=test
Comment