title: How do I remove a query string from URL using Python
body: <p>Example:</p>
  
  <pre><code>http://example.com/?a=text&amp;q2=text2&amp;q3=text3&amp;q2=text4
  </code></pre>
  
  <p>After removing "<strong>q2</strong>", it will return:</p>
  
  <pre><code>http://example.com/?q=text&amp;q3=text3
  </code></pre>
  
  <p>In this case, there were multiple "<strong>q2</strong>" and all have been removed.</p>