Execute Drupal Feeds Import Programatically - Where to put code I found this code for executing feeds importers programatically:

&lt;?php

// Define the id (machine name) of the importer you want to use.
$importer_id = 'my_feeds_importer';

// Load the Feeds Source object.
$source = feeds_source($importer_id);

// Override configurations... (more on that in a moment)

// Execute the import.
$source-&gt;startImport();

?&gt;


I'm just not sure where this code is supposed to go (I'm still pretty green when it comes to Drupal!).
I think you have found the code from this link. In this case you can mention this code in a custom function or hook_cron or in a separate page. Totally depends upon you.

Follow 
Triggering the Feed Import module
and
Programmatically execute FEED import