filled in code for find url in tweet method