Skip to content

Instantly share code, notes, and snippets.

View wbhan95's full-sized avatar
🎯
Focusing

WB Han wbhan95

🎯
Focusing
  • Taiwan
View GitHub Profile
@wbhan95
wbhan95 / linebot.py
Created June 13, 2019 23:26
LineBot service API usage
#!/usr/bin/env python
# coding: utf-8
import os
from datetime import datetime
from pytz import timezone
from flask import Flask, request, abort
from flask_apscheduler import APScheduler
@wbhan95
wbhan95 / stock_crawler.py
Created December 30, 2018 14:56
Retrieve stock(TW) info by fix_yahoo_finance or twstock
import pandas as pd
import matplotlib.pyplot as plt
# stock id
sid = '0050'
# ---------- fix_yahoo_finance toolkit --------------------------
# import fix_yahoo_finance as yf
# import datetime
@wbhan95
wbhan95 / facebook_page_crawler.py
Created December 30, 2018 13:02
Facebook page posts crawler without auth token, using Selenium and BeautifulSoup
### Crawler by Selenium and BeautifulSoup
import datetime, time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException