Tim Hutton
Tim Hutton
@ixs Passing a value down through several layers of functions is completely fine. Large classes are bad because they just become a repository of almost-globals. Even small classes with both...
Made separate issues #105 #106 #107
(Thank you @lenaschimmel! I was just about to ask these questions and try to collate everything, and you've done it much better than I would have.) Is the Guest API...
I'd be interested to see a minimal code snippet for retrieving a handle.
As stand-alone code, with some debug prints: ``` """Utilities for downloading from Twitter""" import json import logging import re import requests # https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-show-id SHOW_STATUS_ENDPOINT = "https://api.twitter.com/1.1/statuses/show.json" # https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-users-show SHOW_USER_ENDPOINT =...
With a hard-coded bearer token (and single-user per query access) as minimal stand-alone code: ``` import json import requests def get_twitter_api_guest_token(session, bearer_token): """Returns a Twitter API guest token for the...
@press-rouch It says it's rate limited to 900 (or 300?) requests per 15-minute window. Does that mean with the batch call this limits us to 90,000 users (or 30,000) per...
If I add debug I get this on my archive: ``` -- Adding https://t.co/… as a link -- -- Adding https://t.co/PxwGCm… as a link -- -- Adding https://t.co/nCYVcXprl… as a...
I added the debugging output, printing out the value of `word`. So presumably your links appear as links in the md files when rendered, because they're just plain text? The...
bit.ly links expire? Yuck. URL shorteners are such nonsense.