Chat with us, powered by LiveChat Extract Data from JSON - Essayabode

Extract Data from JSON

I'm working on a python question and need guidance to help me learn.

The details in the file attached

In this assignment you will write a Python program that will prompt for a URL, read the JSON data from that URL using urllib and then parse and extract the comment counts from the JSON data, compute the sum of the numbers in the file.

The closest sample code that shows how to parse JSON and extract a list is json2.py. You might also want to look at geoxml.py to see how to prompt for a URL and retrieve data from a URL.

You are provide two files for this assignment. One is a sample file (below) where we give you the sum for your testing and the other is the actual data you need to process for the assignment (provided when you launch the quiz).

  • Sample data: comments_42.js (Links to an external site.) (Sum=2553)

You do not need to save these files to your folder since your program will read the data directly from the URL. Note: Each student will have a distinct data url for the assignment – so only use your own data url for analysis.

Data Format

The data consists of a number of names and comment counts in JSON as follows:

{

"note":"This file contains the sample data for testing",

"comments":[

{

"name":"Romina",

"count":97

},

{

"name":"Laurie",

"count":97

},

]

}

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?