On Fri, Jun 23, 2017 at 4:18 PM, Jerry Hill 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
wha
On Tue, Jun 20, 2017 at 4:34 AM, angela ebirim wrote:
>
> baseUrl = "
> http://data.parliament.uk/membersdataplatform/services/mnis/members/query";
> search_criteria = "
>
> House=Commons"
> outputs = "
>
> Constituencies"
>
> headers = {"content-type": "application/json"}
>
>
> *""" so
Hi,
I'm trying to dynamically build a url in python and have tried using:
#file.py
import json
import requests
from urllib.parse import urljoin
baseUrl = "
http://data.parliament.uk/membersdataplatform/services/mnis/members/query";
search_criteria = "House=Commons"
outputs = "Constituencies"
h