Python url title problem
<pre><code>import lxml.html, sys
for arg in sys.argv:
    url2 = arg
    t = lxml.html.parse(url2)
if arg == "":
    url = raw_input("Website URL: ")
    t = lxml.html.parse(url)
print t.find(".//title").text
</code></pre>

<p>Problem is with [if arg == "":]
I want to have something like "if there is no arg, then:", but I don't know how.
How can I do that?</p>
