Web automation with Selenium and Python

I recently discovered Selenium, a very useful tool to automate browsers navigation. Selenium allows to write scripts to automatically perform actions on a web browser: visit a page, click on a link, fill in a form… and retrieve the results of these actions. In this post, I am going to show you how to use Selenium from Python to automatically send messages to a list of Flickr contact through a contact form from your Flickr account.

PostGIS & R

Lately, I have been facing several times the same problem while trying to spatially aggregate milion of spatial points over a spatial distribution of thousands of (not overlapping) polygons: How to efficiently identify the polygon in which every point is located? Indeed, as the number of elements increases R starts to become less and less efficient. In this post, I am going to show you how to efficiently perform operations between geometries by interfacing with PostGIS from R.

Plotting temporal trajectories on Google Earth with Python

In this post I’m going to show you how to display temporal trajectories on Google Earth using the python package simplekml. This package enables us to generate KML videos that we can then plot and record on Google Earth. The python script kmlMovie.py described in this post is available on my GitHub account.

3D bar plot on a map in R

In this post we are going to learn how to plot 3D barplots on a map using R. It is actually not as complicated as it looks. As we will see below, we only need to draw a perspective map using the function persp and then plot the barplots on it.

Bubble Charts in R

In this post post, I’m going to show you how to do nice bubble charts with R. The data are available here.