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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!