AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Chrome plugin automute7/31/2023 ![]() It is a Python binding for WebKitGtk, which uses the WebKit engine, the same engine as chrome. You can use Python to automate web tasks using pywebkitgtk. GCEs don't let you do File I/O, so they are not like Firefox Extensions with XPCOM, but you can get around that by using AJAX to send data to a backend script (like a PHP script on a LAMP server) to save that data.ĮDIT: By the way, and this is slightly off-topic (but I add to clarify) those "wild things" in Javascript that I mentioned were when you manipulate the DOM creating a URL that looks like so: javascript:(function())() It appears they are easy to build and will let me (I think) tell the browser to open a new tab, go to a page, manipulate the DOM on that page (such as populating some fields and logging in), and then manipulate the DOM on the response page. (I use Linux.)ĮDIT: At this point, I'm learning about Google Chrome Extensions. Some other advantages of GCEs are that the dev platform is free and open to some degree, and they are cross-platform. And I've looked at iMacros, but found that I can't get them to run from command line except on Windows, unless I pay for the $499 package. won't work because I have to get through logins in some of these scripts. ![]() Is it possible to use this technique to tell Chrome to visit a URL and then save it as a file? I'm trying to automate Chrome, and Selenium looked extremely daunting.ĮDIT: Unfortunately, I forgot to be more clear here. I've seen some wild things happen when I paste some urlencoded Javascript into a URL on Firefox and Chrome. ![]()
0 Comments
Read More
Leave a Reply. |