There is a script, now working in tampermonkey, which is inconvenient, you have to keep the page constantly open, you need to work on the site 24 hours a day without my presence. I heard something about the implementation using the google apps script, but it seems Google has laid out tutorials to work only with its services. Actually, the subject.
- Do you want a custom script to work when you are not using a page? Is this really necessary? - Vladislav Pyatkov
- Yes, so that the script without my keen eyes carried out the task. It all depends on the complexity of the performance and side effects. - suneram
- oneThe page will most likely have to be kept open or explore the interaction through get / post requests. Do you make a bot for some browser game? - KoVadim
- No, a simple script for performing a novice task - clicking the necessary buttons is not without benefit for me of course :) - suneram
3 answers
Similar at the moment does not exist. You need an incredible number of hacks and in the end something, like a browser emulator, will still be open. In 2014, EcmaScript is planning to resolve this issue. Technology Service Worker .
- By the way, in the chrome: // flags you can already include these service workers. try it. - fogrew
If I understand the task correctly, then you can use http://phantomjs.org/ to emulate a browser and click on the buttons on the page through it.
Those. in fact, you will be running a browser emulation in the console, which itself will go to the page and press a button.
- Thanks, it will be useful to me. I meant a little bit different, but it will help, thanks. - suneram
There is a Selenium web driver , with a silent driver (without browser output). Simple and clear API allows you to emulate a browser, the library is available in many development languages. Today tomorrow - this will be the standard for working with browsers.
It includes the Java script executor you need.