What's the easiest way to webscrape behind login page and auto-fill-in forms to get information?
I have access to a manufacturer website.

Once I log in, I can manually enter SKUs into a form, enter a quantity for each sku, and then on submit a new page will load showing YES or NO for each item-quantity.

Since the manufacturer is rather bad at customer service and doesn't provide me with another way to get inventory information, I would like to have a script of some kind log in and check stock quantities on items.

What would be the best way to go about doing this?

Could I have wget do it somehow? It would need access to a list of SKUs to check and also would need to follow an algorithm for checking quantities.

The algorithm could check for qty 10 first. If Yes, double to 20 and check. If no, halve to 10. Etc.

Could I implement such an algorithm with wget?

Or would writing a script to do this be easier in PHP or some other language?

Thanks
What's the easiest way to webscrape behind login page and auto-fill-in forms to get information?
===

I have access to a manufacturer website.

Once I log in, I can manually enter SKUs into a form, enter a quantity for each sku, and then on submit a new page will load showing YES or NO for each item-quantity.

Since the manufacturer is rather bad at customer service and doesn't provide me with another way to get inventory information, I would like to have a script of some kind log in and check stock quantities on items.

What would be the best way to go about doing this?

Could I have wget do it somehow? It would need access to a list of SKUs to check and also would need to follow an algorithm for checking quantities.

The algorithm could check for qty 10 first. If Yes, double to 20 and check. If no, halve to 10. Etc.

Could I implement such an algorithm with wget?

Or would writing a script to do this be easier in PHP or some other language?

Thanks