Execute Drupal Feeds Import Programatically - Where to put code
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