title: Looking to store two different web urls in a data structure
body: <p>I have two URLs containing the 'hello' string.</p>
  
  <pre><code>https://us.search.yahoo.com/search?p=%22hello%22&amp;fr=yfp-t&amp;fp=1&amp;toggle=1&amp;cop=mss&amp;ei=UTF-8
  </code></pre>
  
  <p>and </p>
  
  <pre><code>https://www.google.com/search?safe=strict&amp;sxsrf=ACYBGNQKbsRTGVazpquHLRnglPuOj1xW9w%3A1576297488275&amp;source=hp&amp;ei=EGT0XcCLDoj4abrUjcAF&amp;q=hello&amp;oq=hello&amp;gs_l=psy-ab.3..35i39j0i203l9.1236.2231..2801...1.0..0.56.247.5......0....1..gws-wiz.......0.LoDd2hNQIFQ&amp;ved=0ahUKEwjA0-LepbTmAhUIfBoKHTpqA1gQ4dUDCAU&amp;uact=5
  </code></pre>
  
  <p>I'm looking to write a function that would take a search engine name parameter and a string in a Python function with these URLs above so that a user can use <code>search_keyword(yahoo, 'hello')</code> or <code>search_keyword(google, 'hello')</code></p>
  
  <p>The difficulty I currently have is that I work with different URL formats for a same URL like inserting double-quotes in them to customize searching like in Google or other engine. But this adds to the number of different URLs I have to work with to try and create a function that would be flexible enough to take different URL formats into account.</p>