Skip to content

Commit

Permalink
chore: fix filename for saved csv
Browse files Browse the repository at this point in the history
  • Loading branch information
nronzel committed Mar 13, 2024
1 parent d54da51 commit 1455d69
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ async def main():
# put jobs in pandas dataframe and export to csv
df = pd.DataFrame(jobs)
title = args.title.replace(" ", "-")
title = args.title.replace(".", "_")
title = title[:255] # truncate to 255 characters
df.to_csv(f"{title}.csv", index=False)

print(f"Found {len(jobs)} jobs.")
print(f"Exported to {args.title}.csv")
print(f"Exported to {title}.csv")


def new_arg_parser():
Expand Down

0 comments on commit 1455d69

Please sign in to comment.