A set of connectors to describe, parse and process the data sources provided by websites and social networks

Overview

HUDI-PACKAGE-CONNECTORS

What is this repository for?

A set of connectors to describe, parse and process the data sources provided by websites and social networks.

Which data sources are supported?

  • Instagram (parsing, validation and processing support for EN, IT and HI languages).
  • Facebook (only parsing)
  • Google (only parsing)
  • Amazon (only parsing)
  • Netflix (only parsing)
  • LinkedIn (only parsing)
  • Twitch (not supported yet)

Tutorial

How to install the library

npm i @humandataincome/connectors

How to import the library

import * as Connector from '@humandataincome/connectors';

How to use Instagram Service

//fileBuffer is the file 'account_information/personal_information.json' into the Instagram data source, as Buffer

let service = new Connector.InstagramService(LanguageCode.ENGLISH);
let result = await service.parsePersonalInformation(fileBuffer);

How to use Facebook Service

//fileBuffer is the file 'profile_information/profile_information.json' into the Facebook data source, as Buffer

let service = new Connector.FacebookService();
let result = await service.parsePersonalInformation(fileBuffer);

How to use Google Service

//fileBuffer is the file 'Takeout/Profile/Profile.json' into the Google data source, as Buffer

let service = new Connector.GoogleService(LanguageCode.ENGLISH);
let result = await service.parseProfile(fileBuffer);

How to use Amazon Service

//fileBuffer is the file 'Digital.PrimeVideo.Watchlist/Digital.PrimeVideo.Watchlist.csv' into the Amazon data source, as Buffer

let service = new Connector.AmazonService();
let result = await service.parsePrimeVideoWatchlist(fileBuffer);

How to use Netflix Service

//fileBuffer is the file 'ACCOUNT/AccountDetails.csv' into the Netflix data source, as Buffer

let service = new Connector.NetflixService();
let result = await service.parsePersonalInformation(fileBuffer);

How to use LinkedIn Service

//fileBuffer is the file 'linkedin/Ads Clicked.csv' into the LinkedIn data source, as Buffer

let service = new Connector.LinkedInService();
let result = await service.parseAdsClicked(fileBuffer);

How to use Descriptor

How to retrieve the descriptor.json file containing the description of the supported sources:

const file = require(@humandataincome/connectors/src/descriptor/descriptor.json);

Example of DescriptorService usage:

import {DescriptorService} from '@humandataincome/connectors';
let codes = await DescriptorService.getAllDataSourcesCodes();

How to use Validator

Example of ValidatorService usage:

//zipFile is a zip file as Buffer

let service = new Connector.ValidatorService();
let validatedZip = await service.validateZIP(zipFile);

Example of ValidatorInstagram usage:

import {ValidatorInstagram} from '@humandataincome/connectors';
let validatedZip = await ValidatorInstagram.selectUsefulFilesFromZip(zipFile);

How to use Processor

Example of ProcessorInstagram usage:

import {ProcessorInstagram} from '@humandataincome/connectors';
let aggregator = await ProcessorInstagram.aggregatorFactory(zipFile, 180);

How do I retrieve my personal data sources?

Instagram Data Source

You can find the guide at this link: https://help.instagram.com/181231772500920 under the section Downloading a copy of your data on Instagram.

Alternately, from Android and iPhone, you can find the Request Download under your Settings -> Security -> Download data. From Desktop, you can find it under Settings -> Privacy and security -> Data download -> Request download.

Always select the JSON format.

Facebook Data Source

Go to https://www.facebook.com/dyi, select Format JSON and Media Quality High, select a Data Range (All time has more information). Scroll at the end of the page and click on the blue button Request a download.

Amazon Data Source

Go to https://www.amazon.com/hz/privacy-central/data-requests/preview.html, select Request All Your Data from the drop down menu and then Submit Request.

Netflix Data Source

Go into one of your account' profiles, click on your account's icon in the top-right corner of the window, click on Account, then click Download your personal data under Settings paragraph and finish clicking the red button Send request.

Google Data Source

You can find the guide at this link: https://support.google.com/accounts/answer/162744?hl=en.

LinkedIn Data Source

From Computer: Click on your icon, click on Settings and Profile, Data privacy, Get a copy of your data and Download the larger Archive.

Twitch Data Source

Go to https://privacyportal.onetrust.com/webform/0e674578-2f0b-4638-8943-97e3c8060048/ee57cd1d-b315-4b29-90cd-4def381b86c9 and compile the form.

You might also like...

typescript-to-jsonschema generates JSON Schema files from your Typescript sources.

fast-typescript-to-jsonschema English | 简体中文 a tool generate json schema from typescript. Feature compile Typescript to get all type information conve

Nov 28, 2022

Here are the sources for the wdi5 workshop at UI5con 2022.

wdi5 workshop at UI5con 2022 Here are the sources for the wdi5 workshop at UI5con 2022. prerequisites please have this installed on your 'puter: Node

Oct 19, 2022

Hackathon for Social Good 2022 and use your superpowers to create a solution for the social good.

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

Jun 27, 2022

A social media platform aimed to capture the essence of all popular, existing social media platforms

A social media platform aimed to capture the essence of all popular, existing social media platforms

Social Fuel Reimagining Social Media, step by step 📌 About A social media platform aimed to capture the essence of all popular, existing social media

Feb 12, 2022

Solve travel woes and grow networks!

Solve travel woes and grow networks!

RouteBuddies Solve travel woes and grow networks! You can be guaranteed an easy, comfortable and safe journey, while getting to interact with variety

May 26, 2022

A small and simple stress testing tool for Ethereum-compatible blockchain networks

A small and simple stress testing tool for Ethereum-compatible blockchain networks

Overview pandoras-box is a small transaction stress testing tool, part of any Ethereum client developer's toolkit. It is made for Ethereum-compatible

Aug 30, 2022

Graphs/networks turned into tables

Graphs/networks turned into tables

(IMP NOTE FOR CONTRIBUTORS: PLEASE DON'T FORMAT THE CODE, IT'S DIFFICULT FOR ME TO FIND THE CHANGES. THANK YOU!) Graph to Table You must have seen gra

Oct 20, 2022

fetch and process data in web worker, store in indexedDB.

fetch and process data in web worker, store in indexedDB.

Query+ install yarn add query-plus or pnpm add query-plus or npm install query-plus import import { useFetch, usePreFetch } from "query-plus" use

Aug 29, 2022
Releases(v2.4.1)
Owner
HUDI
HUDI
This is a test parser which can automatically parse the tests in from websites like codeforces, codechef, atcoder etc.

✔ Sublime test parser This is a test parser which can automatically parse the tests in from websites like codeforces, codechef, atcoder etc. See how i

Prakhar Rai 15 Aug 6, 2022
Python based web application to import, connect and analyze manufacturing data from multiple data sources.

Analysis Platform Analysis Platform is an open source web application to import, connect and visualize factory IoT data. It helps to collect, link and

Analysis Platform +DN7 7 Dec 1, 2022
Create your own wrappings with optional key bindings for selected text, a set of useful defaults is also provided.

Create your own wrappings with optional key bindings for selected text, a set of useful defaults is also provided.

Seth Yuan 66 Jan 1, 2023
11ty starter: uses md and notion as data sources

eleventy_notion_starter 11ty starter: uses md and notion as data sources. Based on https://github.com/siakaramalegos/11ty-sia-blog. Used to power http

Thiago Margarida 18 Oct 26, 2022
A web component that allows you to run high level programming languages on your websites (static websites included!)

Code-Runner-Web-Component A web component that allows you to run high level programming languages on your website via the public Piston API Show your

Marketing Pipeline 28 Dec 16, 2022
Sharerbox - Free, minimalist and lightweight JavaScript-based social-media sharer for websites

Sharerbox Free minimalist and lightweight JavaScript-based social-media sharer for websites. Version: 0.8.1 Description SharerBox is a free, minimalis

Juan Astudillo 3 Aug 22, 2022
Elizabeth Oyinlade Ojesanmi 10 Sep 14, 2022
🚌 A Node.js API to access public transport information in Lisbon using data provided by Carris Metropolitana

?? Carris Metropolitana API A Node.js REST API built to easily access and search public transport information in Lisbon using data provided by Carris

Márcia Martins 4 Jun 21, 2022
In this project, I built a simple HTML list of To-Do tasks. Using webpack to bundle JS functionality and other sources.

To-do-list App A simple To-do-list app using DOM manipulation. Built With HTML/CSS JavaScript Webpack Jest Live Demo Live Demo Getting Started Get a c

Andy Menutti 10 Nov 5, 2022