-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would anyone happent to have an example of integrating this with a csv target? #66
Comments
I might be wrong but I don't believe that anything is being piped to target-csv in your case. That pipe is not piping anything as all output is being directed to 'tap_output.json'. |
Do the following steps: INSTALL TAP FACEBOOK
INSTALL TARGET CSV
CONFIG{
"ads": "2019-01-01T00:00:00Z",
"adcreative": "2019-01-01T00:00:00Z",
"ads_insights": "2019-01-01T00:00:00Z"
} GET DATA ON FACEBOOK GRAPHQL API
RUNNING DISCOVERY MODE
choose the properties listed in catalog.json then paste it on properties.json, e.g: {
"breadcrumb": [],
"metadata": {
"table-key-properties": [
"campaign_id",
"adset_id",
"ad_id",
"date_start"
],
"inclusion": "available",
"selected": "true"
}
}, RUNNING ETL
|
The output from |
Could anyone please tell me how I can run the last command from @kayosouza 's answer on Windows system. |
I'll share how I use it with target-parquet (almost the same as csv). I run this is a docker container, Dockerfile
run.sh script (that will be called by the dockerfile in runtime
This should be enough for most setups.
I saw multiple users having issues to run these taps in OSs different than Linux. I would recommend wither using Linux directly or Docker. |
Hi, I'm trying to pull data from fb using taps and targets, and have been unsuccessful so far.
I've tried the following:
~/.virtualenvs/tap-facebook/bin/tap-facebook --config config.json --catalog catalog.json | ~/.virtualenvs/target-csv/bin/target-csv >target_output.csv
~/.virtualenvs/tap-facebook/bin/tap-facebook -c config.json -s state.json --discover | ~/.virtualenvs/target-csv/bin/target-csv >target_output.csv
But each time I'm getting a blank output. My state.json file looks like this:
{"ads":"2019-01-01T00:00:00Z",
"adcreative":"2019-01-01T00:00:00Z",
"ads_insights":"2019-01-01T00:00:00Z"}
I also have another version of tap-facebook installed on a different virtualenv, and simply use the cmd:
/venv/bin/tap-facebook -c config.json --discover > tap_output.json | ~/.virtualenvs/target-csv/bin/target-csv >target_output.csv
I get an output in tap_output.csv, which I'm guessing is the schema. But no output in target-csv, any idea how to get that working?
Would really appreciate any help!
The text was updated successfully, but these errors were encountered: