title: Correct way to use GeoPy Nominatim
body: <p>I'm new on programing, and I'm using a programing tutorial which said that to use <code>geopy</code> like this:</p>
  
  <pre class="lang-py prettyprint-override"><code>import pandas, os, geopy
  from geopy.geocoders import Nominatim
  
  GeoLocator = Nominatim()
  </code></pre>
  
  <p>but after the last line I'm getting this error:</p>
  
  <blockquote>
    <p><em>/usr/local/lib/python3.7/site-packages/geopy/geocoders/osm.py:143: UserWarning: Using Nominatim with the default "geopy/1.17.0" <code>user_agent</code> is strongly discouraged, as it violates Nominatim's ToS <a href="https://operations.osmfoundation.org/policies/nominatim/" rel="noreferrer">https://operations.osmfoundation.org/policies/nominatim/</a> and may possibly cause 403 and 429 HTTP errors. Please specify a custom <code>user_agent</code> with <code>Nominatim(user_agent="my-application")</code> or by overriding the default <code>user_agent</code>: <code>geopy.geocoders.options.default_user_agent = "my-application"</code>. In geopy 2.0 this will become an exception.
      UserWarning</em></p>
  </blockquote>
  
  <p>My question is, how should I change my code to fix this error?</p>