Open NexiaMoe opened 2 years ago
Hi.
After running the code, the result of cat JeniusConnect.csv | head -1
(get the first line of JeniusConnect.csv) is id,date,time,user_id,username,name,tweet
in my environment.
What does “no header” mean? or is this different from your environment?
My Bad, if file is not exist, it will add header
but if file exist, and it empty, it will not add header, but in original twint, it will add header if file exist.
I tested your code using the original twint, but the original twint didn't add header if file exists and is empty.
The first line of JeniusConnect.csv is 1503154389866844163,2022-03-13,23:41:48,1351839832079650818,tchamomilee,ChuSangchuuu~,(tweet text)
.
Initial Check
pip3 install --user --upgrade -e git+https://github.com/minamotorin/twint.git@origin/master#egg=twint
;Command Ran
I'm using twint as module, here code I use :
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)