Script to grab RG links