Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions