综合编程

Python Tutorial Exercise 3: Implement the govAPI_UK class

微信扫一扫,分享到朋友圈

Python Tutorial Exercise 3: Implement the govAPI_UK class
0

Write a govAPI_UK implementation class which retrieves the following attributes from the UK government API:

  • familyName

  • givenName

  • gender

  • party

  • id (by extracting the number out of the about attributes)

We use the UK goverment API “data.parliament.uk” for retrieving government members.

A hint:

  • When you have fetched the JSON and stored in a variable, loadedjson you have to iterate over the array found in

    loaded_json[‘result’][‘items’]

Additional point:

  • Elaborate if the API used the paging mechanism

阅读原文...

微信扫一扫,分享到朋友圈

Python Tutorial Exercise 3: Implement the govAPI_UK class
0
Avatar

Simple Priority Arbiters: Allocating Resources in Embedded Systems with VHDL and Logism

上一篇

去年美国iPhone用户人均app消费79美元

下一篇

评论已经被关闭。

插入图片

热门分类

往期推荐

Python Tutorial Exercise 3: Implement the govAPI_UK class

长按储存图像,分享给朋友