Skip to content

Instantly share code, notes, and snippets.

View neirbowj's full-sized avatar

John W. O'Brien neirbowj

  • Philadelphia, PA
View GitHub Profile
@neirbowj
neirbowj / twitter-archive-following-followers.md
Last active December 12, 2024 02:37 — forked from robinst/twitter-archive-following-followers.md
Twitter: How to archive your following/followers data (usernames, etc)

Twitter allows users to download parts of their data, see How to download your Twitter archive.

But what's not included in that data dump is the usernames/handles of the people that you follow or are following you. All you get is account IDs which is just an internal number and so a bit useless when it comes to archival.

Here's a way to get that data (you need to know how to run stuff in the terminal):

  1. Go to your Twitter profile in a desktop browser (Firefox or Chrome)
  2. Right click on page → Inspect → Network tab
  3. Click on the Following link (e.g. https://twitter.com/{yourusername}/following)
#!/usr/bin/env python
def leftmost(bits):
"""
Generate 2-tuples in (ordinal, value) sequence according to the
order of the "leftmost" scheme specifed in
https://tools.ietf.org/html/rfc3531#section-3.1
for all numbers representable by `bits` bits.
@neirbowj
neirbowj / gist:b1720c42a9908feedf7c
Created November 23, 2015 00:11
pandas 0.17.1 segfault in json.encode backtrace
% gdb /usr/local/bin/python3.4 python3.4.core GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `python3.4'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libthr.so.3...(no debugging symbols found)...done.