Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

fixes #976: saving tweets to csv #998

Merged
merged 1 commit into from
Oct 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion twint/storage/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def Csv(obj, config):
fieldnames, row = struct(obj, config.Custom[_obj_type], _obj_type)

base = addExt(config.Output, _obj_type, "csv")
dialect = 'excel-tab' if config.Tabs else 'excel'
dialect = 'excel-tab' if 'Tabs' in config.__dict__ else 'excel'

if not (os.path.exists(base)):
with open(base, "w", newline='', encoding="utf-8") as csv_file:
Expand Down