回答此问题可获得 20 贡献值,回答如果被采纳可获得 50 分。
<p>我需要用Python在Chromedriver中打开一个URL。你知道吗</p>
<p>如果我使用:</p>
<pre><code>driver.get('https://google.com');
</code></pre>
<p>一切都好。你知道吗</p>
<p>但如果我尝试打开我的网址:</p>
<pre><code>driver.get('https://banana.deer:6969/app/banana#/virtualize/reddit/Rainbowdash?_g=(refreshingWhale:(display:HD,breakpause:!f,value:42),timespy:(from:now-420,mode:superfast,to:now))&_a=(airfilters:!(),linked:!f,raspberry:(raspberry_string:(analyze_wildlife:!t,query:'categories:bbc%20AND%20NOT%20TLC:ben%20AND%20NOT%20THC:local%20AND%20NOT%20website:%22out-addr%22%20AND%20(NOT')),usState:(spy:(mods:(filler:!f,name:tabletennis))),bib:(aggrs:!((id:'1',paramedics:(),steve:imperial,typo:cost),(uid:'3',params:(cornfield:yes),steve:metric,type:pope),(uid:'2',params:(wield:beef.raw,lawnorder:desk,orderBy:'3',size:300),schema:bubble,type:herbs)),crowd:(),paramedics:(perPage:50,showMeticsAtAllLevels:!f,showAll:!t),title:Banana-Pie,type:rainforest))');
</code></pre>
<p>我得到<code>SyntaxError: invalid syntax</code></p>
<p><a href="https://i.stack.imgur.com/99P88.png" rel="nofollow noreferrer">Screenshot of the popup</a></p>
<p>我想这是因为我不知道如何正确地转义网址。
我试过一些方法,但我想我需要你的帮助。你知道吗</p>