Skip to content

Instantly share code, notes, and snippets.

@thumpri
thumpri / get_followers_bios.py
Created June 19, 2020 04:52 — forked from raulgarreta/get_followers_bios.py
Simple Python command to get Twitter user followers with the public API.
# -*- coding: utf-8 -*-
import csv
import time
import re
import codecs, cStringIO
from argparse import ArgumentParser
import tweepy
@thumpri
thumpri / csv_splitter.py
Created November 20, 2017 11:13 — forked from jrivero/csv_splitter.py
A Python CSV splitter
import os
def split(filehandler, delimiter=',', row_limit=10000,
output_name_template='output_%s.csv', output_path='.', keep_headers=True):
"""
Splits a CSV file into multiple pieces.
A quick bastardization of the Python CSV library.
Arguments: