title: Yahoo Weather API WOEID retrieval
body: <p>I'm creating an app (PHP) that takes yahoo weather data from the free RSS feed and correlates it with a colour hex based on data retrieved from the RSS feed. The issue I'm having is finding a way to grab the location code or WOEID without doing it manually.</p>
  
  <p>Yahoos API sends back an RSS feed as long as you provide a WOEID -> <a href="http://weather.yahooapis.com/forecastrss?w=4097" rel="noreferrer">http://weather.yahooapis.com/forecastrss?w=4097</a></p>
  
  <p>Is there an ethical way of doing this? My beginner knowledge tells me I have to write a script that would search yahoo using the term and grab the first WOEID, but I would assume yahoo doesn't want scripts doing this and it seems overcomplicated... If not, are there any alternative APIs that would make this easier on me?</p>
  
  <p>Thanks!</p>