This project creates two lists based on an input data. The first will be the list of all the URLs that have a duplicate spam_score
, and the second will be a list of all the URLs with a duplicate domain_authority
.
Example: The following simplified data would return the following JSON object:
You will be given a large set of data with the following JSON format in data.json
{
"idina_response":{
"sources":[
{
"url":"example.com",
"spam_score": 1,
"matching_target_indexes":[
0
],
"matching_source_urls":[
{
"url":"example.com/news/current/",
"page_authority":44
}
],
"domain_authority":95
},
// ...
]
}
}
{
"idina_response":{
"sources":[
{
"url":"example.com",
"spam_score": 1,
"domain_authority":95
},
{
"url":"foo.com",
"spam_score": 2,
"domain_authority":100
},
{
"url":"bar.com",
"spam_score": 1,
"domain_authority":100
},
{
"url":"baz.com",
"spam_score": 1,
"domain_authority":12
},
{
"url":"qux.com",
"spam_score": 2,
"domain_authority":401
},
{
"url":"moz.com",
"spam_score": 186,
"domain_authority":99
},
]
}
}
{
"duplicate_spam_scores": [
"example.com",
"bar.com",
"foo.com",
"baz.com",
"qux.com"
],
"duplicate_domain_authorities": [
"foo.com",
"bar.com"
]
}
- Typescript
- HTML
- CSS - SASS
$ git clone [email protected]:nathpaiva/form-rendering.git
$ yarn
$ npm install
$ yarn start
$ npm start
- This command to access http://localhost:2000
$ yarn test
$ npm test
$ yarn build
$ npm run build