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 logging | |
log = logging.getLogger(__file__) | |
log.setLevel(logging.DEBUG) | |
formatter = logging.Formatter(('#%(lineno)s,%(levelname)s,"%(message)s"')) | |
c = logging.StreamHandler() | |
c.setFormatter(formatter) | |
c.setLevel(logging.DEBUG) |
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 json | |
import requests | |
import csv | |
ACCESS_TOKEN = None | |
def get_response(api, parameter): | |
header = {"Authorization": ACCESS_TOKEN} | |
url = "https://cloud.feedly.com/{}?".format(api,) |
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
#!/usr/bin/python | |
from neo4j.v1 import GraphDatabase, basic_auth | |
import os | |
from json import dumps | |
from flask import Flask, g, Response, request | |
password = "neo4j" #use env to protect this when go to production | |
driver = GraphDatabase.driver('bolt://localhost',auth=basic_auth("neo4j", password)) |