How can I execute javascript in Bash? -


I try to get straight from Bash to a page. The page appears when you type the math in the field on the top right corner. I tested

open

but it leads to the main page This is clearly some javascript thing on the first page how do I directly result from bash Can i get

[Explanation]

We take an example. The following lines are for Math Search Engine. Bashrc:

  alias mathundergradsearch = '/ users / user / bin / mathundergraduate'  

Things a different file:

  #! / Bin / sh q = $ 1 w = $ 2E = $ 3R = $ 4T = $ 5 open "http://www.google.com/cse?cx=007883453237583604479% 3A1qd7hky6khe & ie = UTF- 8 & amp; q = $ q + $ w + $ e + $ r + $ t & hl = n " 

Now, I want something like the example. The difference is that the second site has JavaScript or something that does not allow me to see the parameters. How can I find out where to put the search parameters, because I can not find the details?

 open  "http://www.ocwconsortium.org/index.php?q= Mathematics & option = com_coursefinder & uss = 1 & amp; l = & amp; s = & amp; Itemid = 166 & amp; Bx = 0 & amp; by = 0 & amp; b = search  

You need a quote Because the URL contains characters that consider shell as special.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -