Re: [Tutor] Tutor Digest, Vol 160, Issue 26

2017-06-23 Thread Jerry Hill
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

Re: [Tutor] Tutor Digest, Vol 160, Issue 26

2017-06-23 Thread Jerry Hill
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

Re: [Tutor] Tutor Digest, Vol 160, Issue 26

2017-06-20 Thread angela ebirim
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