Skip to content

why am i fail to get the output? #3

@kumarlova

Description

@kumarlova

search_term = 'Bhavesh Bhatt Data Scientist'
from_date = '2023-01-01'

os.system(f"snscrape --since {from_date} twitter-search '{search_term} until:{end_date}' > result-tweets.txt")
if os.stat("result-tweets.txt").st_size == 0:
counter = 0
else:
df = pd.read_csv('result-tweets.txt', names=['link'])
counter = df.size

print('Number Of Tweets : '+ str(counter))

output is::

Number Of Tweets : 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions