airbyte-custom-connector/source-social-network-fetcher
Alexis Pentori fb9a6bf821 social-network-fetcher: Init connector
Signed-off-by: Alexis Pentori <alexis@status.im>
2024-02-15 09:57:42 +01:00
..
sample_files social-network-fetcher: Init connector 2024-02-15 09:57:42 +01:00
source_social_network_fetcher social-network-fetcher: Init connector 2024-02-15 09:57:42 +01:00
Dockerfile social-network-fetcher: Init connector 2024-02-15 09:57:42 +01:00
README.md social-network-fetcher: Init connector 2024-02-15 09:57:42 +01:00
main.py social-network-fetcher: Init connector 2024-02-15 09:57:42 +01:00
metadata.yaml social-network-fetcher: Init connector 2024-02-15 09:57:42 +01:00
requirements.txt social-network-fetcher: Init connector 2024-02-15 09:57:42 +01:00
setup.py social-network-fetcher: Init connector 2024-02-15 09:57:42 +01:00

README.md

Social Network Fetcher Source

This is the repository for fetching Social Network information, written in Python.

Todos

  • Implements first version based on original script
    • Fetch the Data users of each count.
    • Fetch Tweets details
  • Improve version:
    • limit the data fetching based on input date

Usage

This connector fetch information from different social network based on their API:

  • Twitter:
    • Tweets reaction
    • [...]

Configuration

The connector takes the following input:

twitter:
  - API-KEY
  - Account List

Output

The connector will return the following:

Local development

Prerequisites

Activate Virtual Environment and install dependencies

From this connector directory, create a virtual environment:

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Locally running the connector

python main.py spec
python main.py check --config sample_files/coin_list.json
python main.py discover --config sample_files/coin_list.json
python main.py read --config sample_files/coin_list.json --catalog sample_files/configured_catalog.json

Locally running the connector docker image

docker build -t airbyte/social-network-fetcher:dev .
# Running the spec command against your patched connector
docker run airbyte/social-network-fetcher:dev spec

Run

Then run any of the connector commands as follows:

docker run --rm airbyte/social-network-fetcher:dev spec
docker run --rm -v $(pwd)/sample_files:/sample_files airbyte/social-network-fetcher:dev check --config /sample_files/coin_list.json
docker run --rm -v $(pwd)/sample_files:/sample_files airbyte/social-network-fetcher:dev discover --config /sample_files/coin_list.json
docker run --rm -v $(pwd)/sample_files:/sample_files -v $(pwd)/sample_files:/sample_files airbyte/social-network-fetcher:dev read --config /sample_files/coin_list.json --catalog /sample_files/configured_catalog.json