mark_suspended_twitter_handle

Documentation for eth_defi.feed.sources.mark_suspended_twitter_handle function.

mark_suspended_twitter_handle(handle, user_id, source_files_by_handle, today_str)

Mark a suspended X account as unavailable in feeder YAML files.

X can resolve suspended accounts to user IDs, but reject adding them to a list. We reuse the existing twitter-handle-resolved-unknown-at marker because it disables the source until an operator verifies that the account has been restored or repointed.

Parameters
  • handle (str) – Twitter/X handle that failed list membership.

  • user_id (str) – Numeric X user ID returned by handle resolution.

  • source_files_by_handle (dict[str, list[pathlib.Path]]) – Mapping from lower-case handle to feeder YAML files.

  • today_str (str) – ISO date string to write to the marker.

Return type

None