This file contains hidden or 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
| # uses the date_to_milliseconds and interval_to_milliseconds functions | |
| # https://gist.github.com/sammchardy/3547cfab1faf78e385b3fcb83ad86395 | |
| # https://gist.github.com/sammchardy/fcbb2b836d1f694f39bddd569d1c16fe | |
| from binance.client import Client | |
| import time | |
| def get_historical_klines(symbol, interval, start_str, end_str=None): | |
| """Get Historical Klines from Binance |
This file contains hidden or 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 newsapi_v2 | |
| import findurls | |
| import praw | |
| import pandas as pd | |
| import utils_func | |
| import os | |
| import time | |
| import subreddit | |
| import requests | |
| from newspaper import fulltext |
This file contains hidden or 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 svglib.svglib import svg2rlg | |
| from reportlab.graphics import renderPDF | |
| def svg_to_pdf(in_path, out_path): | |
| # svg to pdf | |
| drawing = svg2rlg(in_path) | |
| renderPDF.drawToFile(drawing, out_path) | |
NewerOlder