Put some logic retrieving links. Check if already retrieved. Create a directory if not exists.