From the course: Complete Guide to Python for Data Engineering: From Beginner to Advanced
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Export data as a TXT file - Python Tutorial
From the course: Complete Guide to Python for Data Engineering: From Beginner to Advanced
Export data as a TXT file
- [Instructor] Now it's time to store all our analysis for extraction which we have done from the webpages into a text file. This is crucial for data engineering. The reason is you generate this data export it into the text files and you share it with the data analytics team so that they can do the further analysis on it, right? So let's dive in and see how we can export the data in text format. Now, the first question come into mind is, why we are exporting the data to text file? The reason is the text file are simple, it's human-readable, and it widely supported across various platforms and the programming languages. They're also easy to parse and manipulate. This makes them one of the best choice for the data storage. Now let's go back to our Google Colab and see how we can extract the data into the text file. So in the previous file, we have got the list of all the items. Now, let me put that into a variable. So I…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
HTML basics7m
-
(Locked)
HTML parents, children, and descendants6m 16s
-
(Locked)
Understand web scraping8m 12s
-
(Locked)
BeautifulSoup basics6m 57s
-
(Locked)
Installing BeautifulSoup4m 11s
-
(Locked)
Get HTML from a webpage5m 29s
-
(Locked)
Scrape the webpage7m 30s
-
(Locked)
Export data as a TXT file4m 37s
-
(Locked)
-
-
-
-