Skip to content

Instantly share code, notes, and snippets.

View ChristopherDaigle's full-sized avatar
:atom:
Teaching Machines

Christopher Daigle ChristopherDaigle

:atom:
Teaching Machines
View GitHub Profile
@ChristopherDaigle
ChristopherDaigle / lastexport.py
Created April 17, 2016 23:36 — forked from bitmorse/lastexport.py
lastfm scrobble exporter (from https://gitorious.org/fmthings/lasttolibre/blobs/master/lastexport.py // changed the script to try more often on failure )
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@ChristopherDaigle
ChristopherDaigle / yahoo_finance.py
Created October 6, 2019 20:30 — forked from scrapehero/yahoo_finance.py
Python 3 code to extract stock market data from yahoo finance
from lxml import html
import requests
from time import sleep
import json
import argparse
from collections import OrderedDict
from time import sleep
def parse(ticker):
url = "http://finance.yahoo.com/quote/%s?p=%s"%(ticker,ticker)