Question
I have multiple tweet texts as shown below in a txt file, i am required to extract the tweet texts first using re.findall in python,
I have multiple tweet texts as shown below in a txt file, i am required to extract the tweet texts first using re.findall in python, i wrote something like this re.findall(r'({"created_at[\w\W]*?"}|{"id[\w\W\d]*?"}|{"text[\w\W]*?"})',tweet_data) but it isnt working, can anyone help me fix it? I need to extract the id of the tweet, the text of the tweet and the date that the tweet was posted
{'id': 'EvWZQ1CDyhT5NUB7Pgv', 'text': "'Childish' conspiracy theorist slammed for breaching #Victorian police checkpoi.nt #COVID19 (IMO the 7 deaths yester https://t.co/9V6rLJROD2", 'Created_at': '2020-07-24 23:59:33'}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started