python

Running Selenium with Headless Firefox

A look at connecting Selenium WebDriver to Firefox’s headless mode.

Continue reading

Running Selenium with Headless Chrome

A guide to setting up Selenium to work with the new headless functionality of Google Chrome.

Continue reading

Why Python's for-else Clause Makes Perfect Sense, but You Still Shouldn't Use It

Learn about Python’s useful and controversial for-else and while-else clauses, as well as why and how to avoid them.

Continue reading

Using Firefox WebExtensions with Selenium

A guide to launching Firefox with extensions preloaded using Selenium.

Continue reading

Using Google Chrome Extensions with Selenium

A simple guide to launching Google Chrome with extensions preloaded using Selenium.

Continue reading

How to Clear the Firefox Browser Cache With Selenium WebDriver/geckodriver

A utility function for clearing Firefox’s cache and cookies from Selenium without reinitializing the browser.

Continue reading

How to Run a Keras Model in the Browser with Keras.js

Covers installing the right packages, exporting the weights from Python, and performing a prediction in the browser.

Continue reading

Resizing Matplotlib Legend Markers

A how-to guide to resizing Matplotlib legend markers.

Continue reading

How to Clear the Chrome Browser Cache With Selenium WebDriver/ChromeDriver

A step-by-step guide to clearing the Chrome browser cache with Selenium.

Continue reading