Python code parser for json files

Fertiggestellt Veröffentlicht vor 7 Jahren Bezahlt bei Lieferung
Fertiggestellt

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

Python

Projekt-ID: #10799374

Über das Projekt

4 Vorschläge Remote Projekt Aktiv vor 7 Jahren

Vergeben an:

viralparekh

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 Mehr

£2 GBP / Stunde
(0 Bewertungen)
0.0

4 Freelancer bieten im Durchschnitt £11/Stunde für diesen Job

awantech

A proposal has not yet been provided

£33 GBP / Stunde
(14 Bewertungen)
4.1
ionutradu2712

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

£5 GBP / Stunde
(1 Bewertung)
0.5