Web scrapping from a Google Chrome extension

Posted by limoragni on Stack Overflow See other posts from Stack Overflow or by limoragni
Published on 2012-10-09T21:34:37Z Indexed on 2012/10/09 21:37 UTC
Read the original article Hit count: 163

I've started to develop a Chrome extension to navigate and prform actions on a website. Until now the extension is able to receive a couple of parameters and check a set of radio-buttons, fill in a few inputs of a form and then submit it.

What I want to do now is to repeat the process, but I'm stuck when the page is reloaded. And I don't know how can I do to make the script reacts to the finish of the request.

The workflow I want to achieve is the following (is for automaticly copying a certain object):

Popup side

Enter the number of the Master object to copy Enter the base name of the copies (example Mod, so the I can iterate and add mod1, mod2, modn) Enter the number of copies

Background side

Select master Select standard options Fill in inputs Submit form Wait for the page to complete the request and continue to the next copy. (here I need help)

The problem is on the repetition, the rest is taking care of. I assume that must be a way of dealing with requests. Any ideas?

By the way I'm doing it all with the extension and tabs methods of google chrome plus javascript and jquery.

© Stack Overflow or respective owner

Related posts about google-chrome-extension

Related posts about web-scraping