Python code parser for json files
£2-5 GBP / ώρα
Very tiny project but if I am happy with the work delivered by the professional, I will be giving more work in the future.
I have multiple json files like:
[url removed, login to view]
[url removed, login to view]
[url removed, login to view]
The content of these file is something like:
[
{
"name": "Morgan Harrison",
“unixtimestamp”: “1466190240”,
"gender": "male",
"tags": [
"dolor"
],
"favoriteFruit": "strawberry"
},
{
"name": "Nita Horton",
“unixtimestamp”: “1466188998”
"gender": "female",
"tags": [
"veniam"
],
"favoriteFruit": "banana"
},
What I would like to have is a python code that could be executed like:
./[url removed, login to view] —lastminute 35 —files *.json —gender female
The code need to accomplish with the following rules:
* read all json files and extract selected fields as name, unixtimestamp and tags
* only return the json lines in the last xx minutes based in the unixtimestamp field (i.e 35)
* calculate the number of lines per gender and include in the output
* extra python modules shouldn’t be used (only the ones included in default linux distros like os, datetime, sys, etc)
the script output need to be formatted in the following way:
[url removed, login to view] - gender: female - entries: 50
[url removed, login to view] - gender: female - entries 25
[url removed, login to view] - gender: female - entries 25
gender: female - total: 100
Ταυτότητα Εργασίας: #10799374
Σχετικά με την εργασία
Ανατέθηκε στον:
Hello, I am a graduate research assistant at a computer vision lab. I have sufficient expertise with python programming and parsing Json files. Recently I completed a project on upwork. Unfortunately I will not be Περισσότερα
4 freelancers κάνουν προσφορά κατά μέσο όρο £11/ώρα για αυτή τη δουλειά
Hello, I have some experience with Python, as I worked with it on a daily basis. Please let me know if you want my help. I would like to collaborate with you further. Thank you, Ionut