Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Having fun with GraphQL

Somide Olaoye Kamparia

💭
Having fun with GraphQL
View GitHub Profile
@Kamparia
Kamparia / usgs_harvester_dag.py
Last active Dec 15, 2020
Data Pipeline With Apache Airflow
View usgs_harvester_dag.py
import requests
from datetime import datetime, timedelta
from airflow import DAG
from airflow.models import Variable
from airflow.operators.python_operator import PythonOperator
from airflow.operators.postgres_operator import PostgresOperator
from airflow.hooks.postgres_hook import PostgresHook
from airflow.contrib.operators.slack_webhook_operator import SlackWebhookOperator