1

Here is what I have so far:

  • initiate when a web browser is running
  • download all content from current webpage and scan for "content of interest"
  • output summary/details of said "content of interest"

but I can only get this output into a file to the screen. This is something that I've kept completely within cli, and I believe this may be about as far as I can take it. Am I wrong here?

I want to be able to interact with the browser somewhat like an extension/add-on would do. What method or routes known can be of use to model my project?

closed as unclear what you're asking by peterph, John WH Smith, jimmij, garethTheRed, chaos Jan 16 '15 at 14:48

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • I have some experience with creating a "bot" using a CLI tools, But what are you trying to do exactly ? – Rabin Jan 16 '15 at 10:12
  • If you want to interact like and extension/add-on why don't you create that? The way I would do any interaction with a web page (not the browser) from a script would be using wget. – YoMismo Jan 16 '15 at 11:41
1

I would not use bash for this, but the controlling of some browsers can be done via extending the pages with (extra) JavaScript and bash could communicate with that.

Instead of developing such a web browser driver from scratch (and not wanting to delve deeper in JavaScript than I have already done), I have gone with selenium and a custom program (in my case in Python) that reads commands from files in a predetermined directory. The commands are text files and are written by other programs (bash, python, but could be anything) that can schedule single actions and repeated actions, background tasks (if nothing else is scheduled to be done). For new, unforeseen tasks, the custom program must be adapted and the web browser restarted, but after the initial development phase such extensions were seldom necessary.

Not the answer you're looking for? Browse other questions tagged or ask your own question.