Skip to content

Instantly share code, notes, and snippets.

🎯
Updates underway for Confounder's repo

Amara's Law analyticascent

🎯
Updates underway for Confounder's repo
Block or report user

Report or block analyticascent

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@spencercarter
spencercarter / model_web_service_flask_post_p1.py
Last active Nov 16, 2018
Gists containing code to run the Models as a Web Service blog post
View model_web_service_flask_post_p1.py
# Part 1: Model
import sklearn as sk
import numpy as np
from sklearn.datasets import load_boston
from sklearn.linear_model import LassoCV
import pandas as pd
from flask import Flask
from flask import request
import requests
@yanofsky
yanofsky / tweet_dumper.py
Last active Dec 14, 2019
A script to download all of a user's tweets into a csv
View tweet_dumper.py
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
@elssar
elssar / grab_pdfs.py
Created Mar 14, 2013
Download all the pdf files linked in a given webpage.
View grab_pdfs.py
#!/usr/bin/env python
"""
Download all the pdfs linked on a given webpage
Usage -
python grab_pdfs.py url <path/to/directory>
url is required
path is optional. Path needs to be absolute
@jeetsukumaran
jeetsukumaran / extract-pdf-pages.py
Created Mar 24, 2012
PDF Page Extraction/Selection in Python Using PyPDF
View extract-pdf-pages.py
#! /usr/bin/env python
###############################################################################
##
## Copyright 2012 Jeet Sukumaran.
##
## 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.
You can’t perform that action at this time.