twint
twint copied to clipboard
[BUG] No Header on CSV Result
Initial Check
- [x] Python version is 3.6 or later;
- [x] Updated Twint with
pip3 install --user --upgrade -e git+https://github.com/minamotorin/twint.git@origin/master#egg=twint
; - [x] I have searched the issues and there are no duplicates of this issue/question/request (please link to related issues of twintproject/twint for reference).
Command Ran
I'm using twint as module, here code I use :
c = twint.Config()
c.To = "JeniusConnect"
c.Replies = False
c.Retweets = False
c.Store_csv = True
c.Output = "JeniusConnect.csv"
c.Custom['tweet'] = ["id", 'date', 'time', 'user_id', 'username', 'name', 'tweet']
c.Since = '2022-03-10'
c.Until = '2022-03-14'
twint.run.Search(c)
Description of Issue
Using Output as CSV and Store_csv = True, Result of CSV is correct but no header, the original twint have header when file is not exist or empty. Is it bug ?
It's not a problem for me, just it not convenient since I need to make it automate,
Environment Details
Using Windows 11 with WSL Ubuntu 20.04, run with python file (Twint as module)