Popular recipes tagged "meta:requires=webbrowser"http://code.activestate.com/recipes/tags/meta:requires=webbrowser/2016-11-01T02:27:13-07:00ActiveState Code RecipesCalendar Maker (Python) 2012-07-03T05:23:57-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578187-calendar-maker/ <p style="color: grey"> Python recipe 578187 by <a href="/recipes/users/2608421/">Stephen Chappell</a> (<a href="/recipes/tags/archive/">archive</a>, <a href="/recipes/tags/calendar/">calendar</a>, <a href="/recipes/tags/cgi/">cgi</a>, <a href="/recipes/tags/old/">old</a>). </p> <p>This is an old program experimenting with CGI techniques in Python using <code>CGIHTTPServer</code> and designed for creating calendars. This is committed for archival to be run under Python 2.5 or later versions.</p> File Share Messenger 2.5 (Python) 2011-04-06T02:45:15-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/577638-file-share-messenger-25/ <p style="color: grey"> Python recipe 577638 by <a href="/recipes/users/2608421/">Stephen Chappell</a> (<a href="/recipes/tags/file_io/">file_io</a>, <a href="/recipes/tags/file_share/">file_share</a>, <a href="/recipes/tags/gui/">gui</a>, <a href="/recipes/tags/messenger/">messenger</a>, <a href="/recipes/tags/network/">network</a>, <a href="/recipes/tags/workaround/">workaround</a>). </p> <p>After writing the limited program shown in <a href="http://code.activestate.com/recipes/577637/">recipe 577637</a>, the following program was written with a better yet incompatible I/O system designed not to fill up a file share with many, separate files. This program had five revisions as outlined within the source code. To access settings within this program, use the "F2" key. Documentation may be accessed via the "F1" key (with future plans cut).</p> <p>If anyone wishes to comment or vote this recipe down, please provide your insight into the fault(s) of the program and provide a suggestion as to what solution you would implement to fix the problems.</p> Wiki Recent Changes Checker (Python) 2010-12-28T07:27:25-08:00Ryhttp://code.activestate.com/recipes/users/4176376/http://code.activestate.com/recipes/577522-wiki-recent-changes-checker/ <p style="color: grey"> Python recipe 577522 by <a href="/recipes/users/4176376/">Ry</a> (<a href="/recipes/tags/beautifulsoup/">beautifulsoup</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/ubuntu/">ubuntu</a>, <a href="/recipes/tags/wiki/">wiki</a>). </p> <p>Basic script that will check and see if there have been any recent changes to a Wikimedia. Used for low use Wikimedia sites to keep an eye on them. I run this whenever my box starts and it will open the browser along with a few other windows that open.</p> LoggingWebMonitor - a central logging server and monitor. (Python) 2010-02-02T01:56:42-08:00Gabriel Genellinahttp://code.activestate.com/recipes/users/924636/http://code.activestate.com/recipes/577025-loggingwebmonitor-a-central-logging-server-and-mon/ <p style="color: grey"> Python recipe 577025 by <a href="/recipes/users/924636/">Gabriel Genellina</a> (<a href="/recipes/tags/client_server/">client_server</a>, <a href="/recipes/tags/debugging/">debugging</a>, <a href="/recipes/tags/distributed/">distributed</a>, <a href="/recipes/tags/logging/">logging</a>, <a href="/recipes/tags/remote/">remote</a>, <a href="/recipes/tags/sysadmin/">sysadmin</a>, <a href="/recipes/tags/web/">web</a>). Revision 3. </p> <p>LoggingWebMonitor listens for log records sent from other processes running in the same box or network. Collects and saves them concurrently in a log file. Shows a summary web page with the latest N records received.</p> Support and warranty information using WMI (Python) 2011-03-17T22:07:43-07:00Michael Grünewaldhttp://code.activestate.com/recipes/users/4172244/http://code.activestate.com/recipes/577123-support-and-warranty-information-using-wmi/ <p style="color: grey"> Python recipe 577123 by <a href="/recipes/users/4172244/">Michael Grünewald</a> (<a href="/recipes/tags/thinkpad/">thinkpad</a>, <a href="/recipes/tags/win32/">win32</a>, <a href="/recipes/tags/wmi/">wmi</a>). Revision 2. </p> <p>Shows the product code and serial number of a Thinkpad (of any computer with those information actually) and opens the Lenovo support and warranty pages for that system. It might work with other Lenovo computers too.</p> Illustration: Writing a TappedIn.com calendar item from FeedDemon to Google Calendar (Python) 2009-01-03T17:13:46-08:00Bill Bellhttp://code.activestate.com/recipes/users/4168674/http://code.activestate.com/recipes/576604-illustration-writing-a-tappedincom-calendar-item-f/ <p style="color: grey"> Python recipe 576604 by <a href="/recipes/users/4168674/">Bill Bell</a> (<a href="/recipes/tags/blog_publisher/">blog_publisher</a>, <a href="/recipes/tags/feeddemon/">feeddemon</a>, <a href="/recipes/tags/google_calendar/">google_calendar</a>, <a href="/recipes/tags/tappedin/">tappedin</a>). </p> <p>This recipe is for reference purposes. It indicates how the FeedDemon RSS reader supplies information about a post to a blog publisher application under the default arrangements (ie, without specifying XML), and then how this information can be reformatted for a <a href="http://TappedIn.com" rel="nofollow">TappedIn.com</a> calendar item for submission to the Google Calendar. Nothing unusual but might be useful to people who use FeedDemon and want to record TappedIn sessions on Google (obviously).</p> Viewing embedded pictures within docstrings (Python) 2008-10-15T01:27:26-07:00Andre Robergehttp://code.activestate.com/recipes/users/2467063/http://code.activestate.com/recipes/576538-viewing-embedded-pictures-within-docstrings/ <p style="color: grey"> Python recipe 576538 by <a href="/recipes/users/2467063/">Andre Roberge</a> (<a href="/recipes/tags/docstring/">docstring</a>, <a href="/recipes/tags/embedded_image/">embedded_image</a>, <a href="/recipes/tags/viewer/">viewer</a>). </p> <p>Python docstrings are textual information about objects. They can be displayed via help(obj). However, they can not contain images. This recipe allows the inclusion of images (encoded in base 64 in the Python file) inside docstrings in a transparent way. The images are indicated as "docpicture = file_name.ext" inside the docstring, and the encoded data is in variable "file_name" inside the same module.</p> PyTube (Python) 2008-12-07T01:19:17-08:00Jonny Reeveshttp://code.activestate.com/recipes/users/4167414/http://code.activestate.com/recipes/576524-pytube/ <p style="color: grey"> Python recipe 576524 by <a href="/recipes/users/4167414/">Jonny Reeves</a> (<a href="/recipes/tags/internet/">internet</a>, <a href="/recipes/tags/script/">script</a>, <a href="/recipes/tags/search/">search</a>, <a href="/recipes/tags/youtube/">youtube</a>). Revision 3. </p> <p>Based off PyGoogle, this script searches Youtube. </p> PyGoogle (Python) 2008-06-06T16:46:38-07:00Erik Andersonhttp://code.activestate.com/recipes/users/4155471/http://code.activestate.com/recipes/573447-pygoogle/ <p style="color: grey"> Python recipe 573447 by <a href="/recipes/users/4155471/">Erik Anderson</a> (<a href="/recipes/tags/shortcuts/">shortcuts</a>). </p> <p>PyGoogle searches google. The google search engine uses 'http://www.google.com/search?hl=en&amp;q=' plus whatever you are searching and replaces the spaces with '+' signs.</p> Easy testing of CGI scripts (Python) 2016-11-01T02:27:13-07:00Bryan Olsonhttp://code.activestate.com/recipes/users/1998252/http://code.activestate.com/recipes/550822-easy-testing-of-cgi-scripts/ <p style="color: grey"> Python recipe 550822 by <a href="/recipes/users/1998252/">Bryan Olson</a> (<a href="/recipes/tags/cgi/">cgi</a>). Revision 3. </p> <p>Invoking 'runcgi.py target.cgi' starts a built-in web server listening on the localhost adapter, configures the server to run target.cgi as a CGI program, then launches the system's default web browser to get the URL of the target script. The CGI script need not be in Python. The terminal that launched runcgi.py will show the server's log, which reports requests, responses, and errors.</p> Cross-platform startfile and mailto functions (Python) 2008-09-20T04:39:16-07:00Antonio Valentinohttp://code.activestate.com/recipes/users/2832200/http://code.activestate.com/recipes/511443-cross-platform-startfile-and-mailto-functions/ <p style="color: grey"> Python recipe 511443 by <a href="/recipes/users/2832200/">Antonio Valentino</a> (<a href="/recipes/tags/sysadmin/">sysadmin</a>). Revision 2. </p> <p>This recipe provides a couple of cross-platform utility functions, 'open' and 'mailto', for opening files and URLs in the registered default application and for sending e-mails using the user's preferred composer. The python standard library already provides the os.startfie function that allows the user to open a generic file in the associated application but it only works on Windows. The 'webbrowser' module is cross-platform but only handles a specific kind of application, the web browser, and it is useless if one wants to open e.g. a source code python file in the user's preferred text editor. The 'open' function simply opens the file or URL passed as parameter in the system registered application. The 'mailto' function starts the user's preferred e-mail composer and pre-fills the 'to', 'cc','bcc' and 'subject' headers if corresponding parameters are provided. It also handles parameters for the message body and for attachments.</p> simple crawler using twisted (Python) 2007-08-01T05:12:59-07:00Vaibhav Bhatiahttp://code.activestate.com/recipes/users/4007166/http://code.activestate.com/recipes/525493-simple-crawler-using-twisted/ <p style="color: grey"> Python recipe 525493 by <a href="/recipes/users/4007166/">Vaibhav Bhatia</a> (<a href="/recipes/tags/network/">network</a>). </p> <p>a simple recipe which can be used to download a webpage using twisted. Created this while going through the twisted documentation. supports the following : - basic authentication - check whether the page is updated - progress bar</p> URL Refresher (Python) 2006-02-28T16:51:27-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/474101-url-refresher/ <p style="color: grey"> Python recipe 474101 by <a href="/recipes/users/2608421/">Stephen Chappell</a> (<a href="/recipes/tags/programs/">programs</a>). </p> <p>This recipe will open a certain URL approximately every 0.5 second using your default browser. It continues to do so until a timeout occurs which has been specified (like the URL) by the user in number of minutes. The timeout starts a reminder that ends once the program has received input. The program then pauses until a key is struck or exits if ESC is pressed.</p> Creating Browser-Based Desktop Apps with CherryPy 2.1 (Python) 2005-10-27T04:04:48-07:00Christian Wyglendowskihttp://code.activestate.com/recipes/users/778172/http://code.activestate.com/recipes/442481-creating-browser-based-desktop-apps-with-cherrypy-/ <p style="color: grey"> Python recipe 442481 by <a href="/recipes/users/778172/">Christian Wyglendowski</a> (<a href="/recipes/tags/web/">web</a>). Revision 2. </p> <p>You want to create a simple browser-based desktop application with minimal fuss.</p> Load data in a web browser without using temp files (Python) 2004-12-21T07:50:58-08:00Jimmy Retzlaffhttp://code.activestate.com/recipes/users/98735/http://code.activestate.com/recipes/347810-load-data-in-a-web-browser-without-using-temp-file/ <p style="color: grey"> Python recipe 347810 by <a href="/recipes/users/98735/">Jimmy Retzlaff</a> (<a href="/recipes/tags/shortcuts/">shortcuts</a>). Revision 3. </p> <p>It is often nice to display something in a web browser, perhaps as an easy way to display rich output or for testing purposes. Sometimes the baggage of a temporary file is not desired when doing this.</p>