Magento import/export is a extremely powerful tool, but fails sometime to update some of attributes. e.g. I got blank related skus while importing products in Magento 2.x.
So, I thought to create an external script which will help me to update products directly into database, without running the import and re-indexing them again and again.
This script will clear the existing related_skus so to avoid duplicates.
This script made solely for educational purposes.
This external script can be taken as reference to update other attributes for the Magento 2 products.

Please read carefully before executing on Magento 2.

I have used this file as import sheet. You can POST this file to the script or save it in FTP and use its address in file_get_contents() method.

Let me know if this works in comment section.
Also connect with me at anurag2701@gmail.com if you have any queries.

Know how to create custom domain for XAMPP here