feat: Print processed data with truncated values
This commit is contained in:
parent
d3f38b426d
commit
a53bc6e195
|
@ -50,6 +50,17 @@ def main():
|
|||
# Ensure response_text is not None (it can be an empty string for 0-byte files)
|
||||
data[key_from_query_param] = response_text
|
||||
|
||||
print("\nProcessed data (truncated values):")
|
||||
if not data:
|
||||
print("No data was processed and stored.")
|
||||
else:
|
||||
for key, value in data.items():
|
||||
if len(value) > 100:
|
||||
truncated_value = value[:100] + "..."
|
||||
else:
|
||||
truncated_value = value
|
||||
print(f"'{key}': '{truncated_value}'")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user