Skip to content

Instantly share code, notes, and snippets.

Avatar
🕺

Federico Pascual feconroses

🕺
View GitHub Profile
@arulrajnet
arulrajnet / tweets_dumper.py
Created Jan 4, 2015
Dump all tweets as CSV of given twitter handle using #Tweepy https://github.com/tweepy/tweepy
View tweets_dumper.py
# -*- coding: utf-8 -*-
import tweepy # https://github.com/tweepy/tweepy
import json
import csv
import sys
# Twitter API credentials
consumer_key = "your_consumer_key"
consumer_secret = "your_consumer_secret"
@yanofsky
yanofsky / LICENSE
Last active Nov 27, 2022
A script to download all of a user's tweets into a csv
View LICENSE
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@jrivero
jrivero / csv_splitter.py
Created Jul 15, 2011 — forked from palewire/csv_splitter.py
A Python CSV splitter
View csv_splitter.py
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: