list management python
<p>I have extracted some url list and want to manipulate this list. Following is extracted list sample:</p>

<pre><code>http://help.naver.com/service/svc_index.jsp?selected_nodeId=NODE0000000235
http://www.naver.com/rules/service.html
http://news.naver.com/main/principle.nhn
http://www.naver.com/rules/privacy.html
http://www.naver.com/rules/disclaimer.html
http://help.naver.com/claim_main.asp
http://news.naver.com/main/ombudsman/guidecenter.nhn?mid=omb
http://www.nhncorp.com/
http://www.nhncorp.com/
</code></pre>

<p>I want to extract only URLs that start with '<a href="http://www.naver.com" rel="nofollow">http://www.naver.com</a>', so finally what I want list is following</p>

<pre><code>http://www.naver.com/rules/privacy.html
http://www.naver.com/rules/disclaimer.html
http://www.naver.com/rules/service.html
</code></pre>

<p>How can I only extract what I want?</p>
