title: How can I edit javascript code inside html file using Python?
body: <p>My problem is actually very simple, but cant find any ways of fixing it. I have a python program that generates an html file containing a map, using the gmplot lib. I wish to remove some overlays automatically drawn by gmplot, and ppl told me there's no Python function/tool to do that.
  When you look at the html generated file code, in order to do what I wish, the modification is rather very simple: at every match of the string <code>&quot;map: map&quot;</code>, replace with <code>&quot;map: map, suppressMarkers: true&quot;</code></p>
  <p>I've searched everywhere, it seems like common sense would be using BeautifulSoup to do it, thing is these &quot;map: map&quot; strings are inside a javascript script in the html file, which always ends up returning me &quot;NoneType&quot;.</p>
  <p>I thought I'd be able to fix this in a couple mins, but it's already been many hours and can't find a way.
  To whoever has the answers to this simple but tricky problem, many thanks :)</p>