Write a parser script for a big JSON file

已取消 已发布的 5 年前 货到付款
已取消 货到付款

WikiData is project which attempts to collect data about everything in our world. Basically, it will contain information of people, cities, countries, foods, atoms, stars, everything.

You can download their entire database from here in JSON format:

[login to view URL]:Database_download#JSON_dumps_(recommended)

All entries in this database are based on a Q code. The Q code is an unique index number of the specific item. For example, [login to view URL] is the entry for a famous person.

We are interested of WikiData's data on people. For example that of [login to view URL]

Your job is to write a script in any language you want, that will analyze the downloaded WikiData database file(s) and output an SQL insert file.

The script must extract 6 things of entries of people:

1) Person's full name,

2) Person's given name (= first name),

3) Person's family name,

4) Person's gender,

5) Person's country of citizenship,

6) Person's native language.

So, for the same person [login to view URL] These values would be:

1) Full name = Manuel José Bonnet Locarno

2) Given name = Manuel

3) Family name = Bonnet

4) Gender = M

5) Country of citizenship = Colombia

6) Native language = Spanish

And this data would be added to the output SQL file as follows:

INSERT IGNORE INTO wikidata (q_code, full_name, first_name, family_name, gender, country, language) VALUES ("Q5993357", "Manuel José Bonnet Locarno", "Manuel", "Bonnet", "M', "Colombia", "Spanish");

The next found person from the WikiData database file(s) would generate a new line to the output SQL file, and so on, and so on.

Please have the script show some kind of progress indication. For example, the number of rows or entries in the database and the current index or row currently being analyzed, so when running the script, you could see the progress.

The script must ignore all other types of entries than persons. Also, if the person's data is missing any of the 6 data fields (full name, given name, family name, gender, country of citizenship, or native language), skip that person.

The purpose of this task is to be able to run the script, and it will generate a huge SQL file which will insert the person data (name / gender / country / language) to database.

In your bid, please state what language you would use to write this. Scripting language such as Perl, PHP or Python would be preferred.

JSON Perl PHP Python

项目ID: #17802874

关于项目

31个方案 远程项目 活跃的5 年前

有31名威客正在参与此工作的竞标,均价$193/小时

rinsadsl

Hi there I can build this script to import the people data into the database. I can make it using PHP. Looking forward to working with you. Thanks Rinsad

$220 USD 在3天内
(1284条评论)
9.6
rajeshsonisl

Hi there, This is a couple of days worth of work. Can begin immediately. I have a 99% project completion rate and a 4.99 reputation (out of max 5.0 from more than 1140 projects from a period of 12 years. Thank 更多

$777 USD 在10天内
(1041条评论)
8.9
gangabass

I have worked with huge (> 100Gb) files before that's why I'm sure you'll be impressed with my work. I can provide you Perl or Python script that will parse JSON and generate SQL file.

$140 USD 在2天内
(872条评论)
8.3
zhangyingtai

Hello sir I am a qualified python developer with 8 years of professional experience of web scraping. I can download all json file and make a parser for the json file. I am interested in this project and can start th 更多

$250 USD 在3天内
(129条评论)
7.6
vano101

Hello I have couple of years of experience with Python and about 1,5 years of experience with PHP I have ideas how to write parser of big JSON file.

$76 USD 在3天内
(621条评论)
7.1
kchwistek

Hi, I can do it for you. My approach will be: 1) download the WIKIDATA JSON dump. 2) use wikidata-filter to extract only human data 3) write a parser of the provided data in PERL to extract required data and format 更多

$150 USD 在5天内
(10条评论)
6.8
kkc1985612

Hi Dear. I am an expert in parsing of Json, XML. I will provide a great result to you in your deadline. Regards. Mi.

$250 USD 在3天内
(44条评论)
6.0
kaloyan13

I will use PHP with JsonDumpReader library. Can do the job in a day. Thank you......................

$100 USD 在2天内
(112条评论)
5.9
shyarakishor1234

Hey My Dear Friend I will build your script in Perl Technology. I have found your requirement regarding build a script which parse json data and build csv file and store that same data in MYSQL Table and i am app 更多

$222USD 在1天里
(36条评论)
5.7
stivens

Hello, I can do this in PHP. Just need to clarify a few things. The script must accept the JSON file(s) then decode the content and output an SQL file with insert statements? Do you have a sample JSON file for referenc 更多

$180 USD 在5天内
(30条评论)
5.3
Peterpay

i can do this for you without any problems i'm an expert in data extraction and performance applications.

$250 USD 在3天内
(24条评论)
5.1
ebonk

Hi, I haven't deal with large json files before. It takes about 12hrs for me to download 40gb compressed json file from wikidata. But i know how to parse and process large xml and json data using python without havi 更多

$222 USD 在3天内
(16条评论)
4.9
dslc

I propose to implement a solution in the Perl language. My tentative plan would be as follows: 1) Create a Linux virtual machine (with large disk size - e.g. > 40 GB) for this task + download and extract JSON dump. 更多

$60 USD 在3天内
(11条评论)
4.5
Priyanshu1

Hi Do you want to download all the data as json and then process it or do you want to download it one by one ?? Do you need the script to run 24X7 ?? I will do it in php using mysql(if you have no preference). A lot 更多

$250 USD 在10天内
(5条评论)
4.0
CanadianCoder

Hello, I feel like I can help you get this work done. It should only take a few days at most. I have a lot of relevant experience which would make this quick and painless. Feel free to ask me any questions before makin 更多

$75 USD 在3天内
(20条评论)
3.9
BernardoLima

Hello! I'm an experienced developer and can complete this project for you! Message me so we can discuss and start it! :)

$222 USD 在3天内
(7条评论)
2.6
skriyaz09

I have been working as a software developer for more than 3 years and have good experience in handling JSON data with python.

$100 USD 在4天内
(8条评论)
3.3
prbangalipona

Hi, Do you need quality work? You may give me a small Try to test my skills. I am expert on PHP, Laravel, WordPress Divi, Elementor, Generatepress, Enfold Theme. I can do this job. Lets talk more details about 更多

$155 USD 在10天内
(2条评论)
1.5
UKgetITdone

Hi, I would be using Python as language to process these JSON dumps. I assume you are just looking for program/script that can do this task and not the extracted data. Thanks

$166 USD 在20天内
(1条评论)
0.8
malhiane

I'am very interested To work in this project.

$155 USD 在2天内
(0条评论)
0.0