python save url list in txt file
<p>Hello I am trying to make a python function to save a list of URLs in .txt file</p>

<p>Example: visit <a href="http://forum.domain.com/" rel="nofollow">http://forum.domain.com/</a> and save all <code>viewtopic.php?t=</code> word URL in .txt file</p>

<pre><code>http://forum.domain.com/viewtopic.php?t=1333
http://forum.domain.com/viewtopic.php?t=2333
</code></pre>

<p>I use this function but not save
I am very new in python can someone help me to create this</p>

<pre><code>web_obj = opener.open('http://forum.domain.com/')
data = web_obj.read()

fl_url_list = open('urllist.txt', 'r')
url_arr = fl_url_list.readlines()
fl_url_list.close()
</code></pre>
