Script for exporting objects to VRML
Blender includes a vrml exporter, you just need to enable it.



Unless you specifically need the vrml format you might be better off using the newer X3D exporter (X3D is the successor to vrml).

If you need to automate the export with a script you can use the export operator once the addon is enabled.

import bpy
bpy.ops.export_scene.vrml2(filepath='myscene.vrml')