title: How to change Querystring value in Python?
body: <p>Can someone please help me how to change the querystring value in URL?</p>
  <p>Here is example of links</p>
  <p><strong>Example:1</strong>
  <a href="https://www.flipkart.com/footwear/paragon%7Ebrand/pr?affid=RANDOMVALUE&amp;sort=price_asc&amp;sid=osp" rel="nofollow noreferrer">https://www.flipkart.com/footwear/paragon~brand/pr?affid=RANDOMVALUE&amp;sort=price_asc&amp;sid=osp</a></p>
  <p><strong>Example:2</strong>
  <a href="https://www.flipkart.com/mens-footwear/pr?marketplace=FLIPKART&amp;rwua=175f4d7321d&amp;cpvp=1606130545181&amp;nozq=25d72e9a2dc7&amp;sort=price_asc&amp;sid=osp%2Ccil&amp;rvop=1606130052551&amp;ysl=&amp;p%5B%5D=facets.discount_range_v1%255B%255D%3D70%2525%2Bor%2Bmore&amp;p%5B%5D=facets.fulfilled_by%255B%255D%3DFlipkart%2BAssured&amp;p%5B%5D=facets.brand%255B%255D%3DLotto&amp;p%5B%5D=facets.availability%255B%255D%3DInclude%2BOut%2Bof%2BStock&amp;ozc=tda&amp;affid=RANDOMVALUE" rel="nofollow noreferrer">https://www.flipkart.com/mens-footwear/pr?marketplace=FLIPKART&amp;rwua=175f4d7321d&amp;cpvp=1606130545181&amp;nozq=25d72e9a2dc7&amp;sort=price_asc&amp;sid=osp%2Ccil&amp;rvop=1606130052551&amp;ysl=&amp;p%5B%5D=facets.discount_range_v1%255B%255D%3D70%2525%2Bor%2Bmore&amp;p%5B%5D=facets.fulfilled_by%255B%255D%3DFlipkart%2BAssured&amp;p%5B%5D=facets.brand%255B%255D%3DLotto&amp;p%5B%5D=facets.availability%255B%255D%3DInclude%2BOut%2Bof%2BStock&amp;ozc=tda&amp;affid=RANDOMVALUE</a></p>
  <p>I want to change the querystring <strong>affid=</strong> value, this Querystring either start with <strong>?affid=RANDOMVALUE</strong> or <strong>&amp;affid=RANDOMVALUE</strong></p>
  <p>This querystring has any random value. I want to replace it with my value.</p>
  <p>I have tried to use <a href="https://pypi.org/project/furl/" rel="nofollow noreferrer">furl</a></p>
  <p>here is code which I tried</p>
  <pre><code> LIST_OF_QUERY_PARAMETERS_TO_REMOVE = ['tag', 'affid','affExtParam1','affExtParam2']
   result = furl.furl(full_url)
   final_url = result.remove(LIST_OF_QUERY_PARAMETERS_TO_REMOVE).url
  </code></pre>
  <p>by above code, I am getting following result.</p>
  <blockquote>
  <p>'https://www.flipkart.com/footwear/paragon~brand/pr?sort=price_asc&amp;sid=osp'</p>
  </blockquote>
  <p>is there any better way yo replace just value of specific querystring in URL?</p>