This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from apiclient.discovery import build | |
from oauth2client.service_account import ServiceAccountCredentials | |
import pandas as pd | |
import datetime | |
#SCOPES = ['https://www.googleapis.com/auth/analytics.readonly'] | |
SCOPES = [] | |
KEY_FILE_LOCATION = './path-to-your-private-key-file.json' | |
VIEW_ID = '123456789' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import configparser | |
import platform | |
import json | |
import subprocess as sp | |
import tempfile | |
config = configparser.ConfigParser() | |
config.read('config.ini') | |
settings = config['DEFAULT'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import pandas as pd | |
import io | |
import re | |
import time | |
params = { | |
'region': 'eu-central-1', | |
'database': 'databasename', | |
'bucket': 'your-bucket-name', |