Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a site where on the page is text input field and submit button.

I need to put numbers 1 to 100 in that text field and save the resulting page after the submit button has been clicked. So I need to have 100 pages downloaded.

In these downloaded pages I will look for the information I need.

How can I do that?

share|improve this question

closed as not a real question by Xavierjazz, Nifle, Dave, Mokubai, Oliver Salzburg Sep 23 '12 at 20:20

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

If the website is submitting the form's data using GET, when you click on submit, you should see the submitted data on your browser's address bar. Something like:

If that is the case, you can run the command in a for loop:

  1. Install wget for windows.

  2. Modify (change the paths according to your needs) and run this command:

    FOR /L %i IN (1,1,100) DO ("C:\Program Files\GnuWin32\bin\wget.exe" --output-document "C:\Users\SomeUserName\SomeDir\%i.html"


The for loop has this format: (start,step,end). So, the loop above will go through all the numbers from 1 to 100 in increments of 1. At each iteration, it will set the value of variable %i to the current number.

Wget will download a webpage from a given URL. Using the address from the previous step, it will replace the number in numbers=1 with each of the numbers from 1 to 100, download the corresponding webpage and save it as "number".html in the directory C:\Users\SomeUserName\SomeDir\%i.html.

If you need more help, please post the URL of the website form you will be using.

share|improve this answer
Thank you, but the website is using POST not the GET. So do you have another solution? – Matop79 Sep 23 '12 at 17:08
@Matop79, Can you give us the URL? – terdon Sep 23 '12 at 17:24 "Vyhledat" is a Submit button and "Číslo stavby" is a text field where the number goes. And as the "Název/kód obce:" choose Ostrava – Matop79 Sep 23 '12 at 17:28
@Matop79, sorry, no ideas... – terdon Sep 23 '12 at 18:24

Not the answer you're looking for? Browse other questions tagged .