html - How to access web form programmatically? -


http://countrysize.com/ has 2 pulldown menus country names can selected.

i trying make bash program automatically take screenshot of result given 2 countries. i.e. don't want manually select 2 countries in browser, , take screenshot. goal complete set of country area comparison results.

how programmatically this?

if form on page uses method=get, , query parameters passed in url there url every pair. however, if case, see resulting url in browser.

if form uses method=post, choices sent part of form submission , included in body of web request. there command line tools can call bash script send form submission of type. tools "curl" , "wget" can both this.

however, page looks else going on. page requires javascript, , code actual work in javascript. normally, mean not script command line script.

however... there few links on page comparisons:

http://countrysize.com/?cou1=pk&cou2=sp     = kenya : france http://countrysize.com/?cou1=xxsct&cou2=be  = scotland : belgium http://countrysize.com/?cou1=gl&cou2=br     = greenland : brazil http://countrysize.com/?cou1=iz&cou2=is     = iraq : israel http://countrysize.com/?cou1=ei&cou2=xxsct  = ireland: scotland 

if can figure out codes go each country, use urls.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -