[Tutor] Tutor Digest, Vol 160, Issue 26

Jerry Hill malaclypse2 at gmail.com
Fri Jun 23 16:35:40 EDT 2017


On Fri, Jun 23, 2017 at 4:18 PM, Jerry Hill <malaclypse2 at gmail.com> wrote:

> Try this instead:
>
> result
> ​​
> = search_criteria + "/" + outputs
> resultUrl =
> ​​urljoin(baseUrl, result)
>
>
> That should get you what you're looking for.
>
> Sorry, ​I should have tested more carefully.  That does NOT actually get
what you were looking for, since the urljoin strips off the '/query' part
of your base url.  I think the other advice that you've received, to bypass
urljoin entirely, is probably the right way to go.  I think using urljoin
properly in this case is more complicated than it's worth.

-- 
Jerry


More information about the Tutor mailing list