I'm new to PyQGIS and trying to save the output of the processing tool 'create points layer from table'. I just need to save it as a shapefile. My code is below which seems to be functioning so far. Using QGIS v3.4.
params = { 'INPUT' : 'C:/Users/xxx/WeeklyContacts-2019-07-15.csv', 'MFIELD' : None, 'OUTPUT' : 'memory:', 'TARGET_CRS' : QgsCoordinateReferenceSystem('EPSG:27700'), 'XFIELD' : 'Easting', 'YFIELD' : 'Northing', 'ZFIELD' : None }
processing.run("qgis:createpointslayerfromtable", params)