Skip to content

Instantly share code, notes, and snippets.

View profess1onal's full-sized avatar
💻
profess1onal bug maker

profess1onal

💻
profess1onal bug maker
View GitHub Profile

Keybase proof

I hereby claim:

  • I am profess1onal on github.
  • I am profess1onal (https://keybase.io/profess1onal) on keybase.
  • I have a public key whose fingerprint is B775 7876 A957 EEE8 4CE8 8CFF 7C50 755A 0EB1 EB4D

To claim this, I am signing this object:

@profess1onal
profess1onal / replies.py
Created April 29, 2020 13:17 — forked from edsu/replies.py
Try to get replies to a particular set of tweets, recursively.
#!/usr/bin/env python
"""
Twitter's API doesn't allow you to get replies to a particular tweet. Strange
but true. But you can use Twitter's Search API to search for tweets that are
directed at a particular user, and then search through the results to see if
any are replies to a given tweet. You probably are also interested in the
replies to any replies as well, so the process is recursive. The big caveat
here is that the search API only returns results for the last 7 days. So