Skip to content

Instantly share code, notes, and snippets.

View vineyyadav's full-sized avatar
🏠
Working from home

Viney vineyyadav

🏠
Working from home
View GitHub Profile
# Solution for the SO question: http://stackoverflow.com/q/43702768/4045754
#
# The files e.g. coordinates.txt are mentioned in the SO question
# Read data from the file
with open("coordinates.txt") as f:
data = f.readlines()
data = [x.strip() for x in data]
# Final result
@vineyyadav
vineyyadav / export_repo_issues_to_csv.py
Last active May 3, 2017 06:23 — forked from marcelkornblum/export_repo_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
"""
This is strongly based on https://gist.github.com/unbracketed/3380407;
thanks to @unbracketed and the various commenters on the page.
I've mainly cleaned up the code into basic methods, and included the
various suggestions in the comments. Hope this is useful to someone.
Make sure you have `requests` and `csv` installed via pip then run it:
`python export_gh_issues_to_csv.py`