From Meta, a Wikimedia project coordination wiki

Flickr2Commons is a tool that allows the transfer of images from Flickr to Wikimedia Commons. It can process individual images, sets, or all images by a user. The tool will enforce that only images under acceptable licenses. You need to authorize the tool via OAuth first.

More comprehensive instructions for using Flickr2Commons are available on Wikimedia Commons