Migrate content from drupal8 to drupal8 programmatically with Node::load and Node::create
You might consider using Migrate module for this task. For pulling entities from external database use Drupal 8 migration module.