【ENG SUB】前端自学Python一星期,能干点啥?I learned Python in a week
Summary
TLDRThe speaker shares their journey of learning Python in 2022, despite previous attempts and giving up. They discuss the popularity of Python, its use in various sectors like tech companies and non-software companies for tasks such as backend development, data analysis, and even HR tasks. The speaker highlights Python's simplicity, ease of setup, and rich module ecosystem, which makes it an attractive language for beginners. They also reflect on their experience writing a Python script to automate video analytics collection for their Bilibili channel, comparing it with a similar task done in Node.js. The video concludes with the speaker's realization of Python's versatility in fields like web crawling, data visualization, testing, and office automation, and its value as a second programming language for tech professionals. They encourage viewers to consider Python for its practical applications and potential benefits in enhancing productivity and employability.
Takeaways
- 📅 The speaker started learning Python on January 11th, 2022, with the goal of expanding their skills to handle more freelance projects and to be able to read Python code for work.
- 🌐 Python is a popular programming language widely used in the tech industry, including by big companies like Google and Facebook, and for various purposes such as backend development and data analysis.
- 💡 The speaker emphasizes the importance of learning new programming languages to stay competitive and mentions their past company's encouragement of learning Python through free courses and learning groups.
- 📚 Despite previous attempts and resources, the speaker struggled to find time to learn Python due to a full-time job, highlighting the challenge of learning something new while working.
- 🚀 The speaker finds similarities between programming languages and suggests focusing on the differences when learning a new language, noting that Python and JavaScript are not too different.
- 📈 The speaker appreciates Python's simplicity and ease of setup, as well as its rich ecosystem of modules that can be easily installed and used.
- 🕸️ The speaker's first practical application of Python is to create a web crawler to automate the collection of video analytics from Bilibili, which was a time-consuming manual process.
- 🤔 The speaker expresses concerns about the legality and ethics of web crawling, opting to use Bilibili's open API for practice to avoid potential issues.
- 📈 After creating and debugging, the speaker successfully wrote a Python script to fetch video analytics, and considers building a video analytics platform for Bilibili creators.
- 📊 The speaker also contemplates using a chart library to visualize data, aiming to create a personalized analytics tool and potentially uncovering insights into the platform's algorithm.
- ⚖️ The speaker compares Python with Node.js, noting that while Python's script is lighter in file size, Node.js is faster in returning data for the same task.
- 🔧 Python is presented as a good option for beginners due to its ease of use and lightweight nature, suitable for a variety of applications from web crawling to data visualization and beyond.
Q & A
What is the speaker's motivation for learning Python?
-The speaker wants to learn Python to handle more types of freelance projects, read Python code for work if needed, and to potentially use it for productivity scripts in their free time.
Why does the speaker feel that Python is popular in the Bay area?
-The speaker believes Python is popular because it is widely used by big tech companies like Google and Facebook for backend development, and even non-software companies use it for data analysis and report generation.
What is the speaker's previous experience with programming?
-The speaker already knew Node.js and had tried learning Python in the past, but had not been successful due to time constraints and lack of motivation.
How does the speaker find Python's syntax different from JavaScript?
-The speaker notes that Python does not use curly braces `{}` to segment code; instead, it uses indentation and colons `:`.
What does the speaker find appealing about Python's environment setup?
-The speaker appreciates that Python is easy to set up, requiring only a download of the Python package and the use of `pip install` to add modules.
What is the first application the speaker created using Python?
-The speaker created a web crawler to fetch video analytics from Bilibili, which was a task they previously found time-consuming.
Why did the speaker decide to use Bilibili's open API for their crawler practice?
-The speaker chose to use Bilibili's open API to avoid legal issues and to practice without infringing on data from other websites for business use.
What is the speaker's opinion on Python's performance compared to Node.js?
-The speaker found that for the same task, Node.js returned data faster, but noted that Python scripts are lighter in file size compared to a Node.js project.
What are some of the other uses the speaker mentions for Python?
-The speaker mentions that Python can be used for writing tests, office automation, data science, backend development, and machine learning.
What advice does the speaker give about learning Python for job prospects?
-The speaker advises researching job opportunities in one's area and understanding that becoming proficient in a field takes time, project experience, and sometimes formal education.
Why does the speaker consider Python a good second programming language for tech workers?
-The speaker believes Python is beneficial for tech workers as it can be used for simple applications like data analysis and productivity tools, which can enhance daily work or life.
What was the speaker's final takeaway from their experience learning Python?
-The speaker concludes that Python is a good option for beginners, as it allows one to get a feel for programming quickly and can be a valuable addition to a tech worker's skill set.
Outlines
📚 Starting Python Learning Journey
The speaker shares their decision to learn Python on January 11th, 2022, despite previous attempts and failures. They already knew Node.js but wanted to expand their skills to handle more freelance projects and potentially read Python code at work. They highlight Python's popularity, its use in big tech companies, and its application in various non-software roles. The speaker also discusses their past opportunities to learn Python and the challenges faced due to time constraints. They emphasize the similarities between programming languages and the importance of focusing on differences when learning a new one. They describe their learning process, the simplicity of Python's syntax and environment setup, and the ease of using Python modules. The paragraph concludes with the speaker's realization of Python's utility in creating a personal video analytics tool for Bilibili and their mixed feelings as a JavaScript developer.
🤔 Reflecting on Python's Versatility and Learning Curve
The speaker compares their Python and Node.js scripts, noting that while Python may be slower, it is lighter in file size and offers a quicker entry into programming for beginners. They discuss the broader applications of Python, including web crawling, data visualization, backend development, and machine learning. However, they caution that mastering these fields requires time, project experience, and sometimes formal education. The speaker advises aspiring learners to research job opportunities in their area and align their learning goals accordingly. They also mention that Python is a valuable second language for tech professionals and can be beneficial in interviews for a variety of positions. The paragraph ends with the speaker expressing satisfaction in fulfilling a New Year's resolution and thanking the viewers.
Mindmap
Keywords
💡Python
💡Node.js
💡Script Language
💡Freelance Projects
💡Data Analysis
💡Web Crawler
💡API (Application Programming Interface)
💡PIP (Package Installer for Python)
💡Code Indentation
💡Productivity Tools
💡Backend Development
Highlights
The speaker decided to start learning Python on January 11th, 2022, despite previous attempts and giving up.
The speaker already knew Node.js and wanted to learn Python to handle more freelance projects and read Python code for work.
Python is popular in the Bay area and used by big tech companies like Google and Facebook for backend operations.
The speaker's previous company used Python for data analysis and reporting, and even HR used it for email automation.
The speaker's previous company offered free Python courses and learning groups, but they didn't have time to learn it at that time.
Learning a new programming language is challenging, but the speaker is motivated to learn Python when they have time.
Python and JavaScript are not too different, with the main difference being in syntax and data structures.
The speaker spent less than 14 hours learning the basics of Python and found it clean, simple, and easy to set up.
Python comes with many modules, which can be easily installed using pip and imported directly into the code.
The speaker plans to use Python to create a web crawler to automate the collection of video analytics from Bilibili.
The speaker considered the legality of web crawling and decided to use Bilibili's open API for practice.
After debugging, the speaker wrote their first Python script in over two hours to return video analytics.
The speaker suggests creating a video analytics platform for Bilibili creators using the open API and a chart library.
Python chart libraries are plentiful, and the speaker considered doing an episode comparing them.
The speaker compared Python with Node.js for writing a similar script and found Node.js faster but Python scripts lighter in file size.
Python is considered a good option for beginners due to its ease and lightweight nature.
The speaker discusses the use of Python for backend development, machine learning, and other fields, but emphasizes the need for further learning and experience.
Python is seen as a valuable second programming language, especially for those in tech, for tasks like data analysis and productivity tool creation.
The speaker shares that having Python listed as a skill on resumes is beneficial for a variety of job interviews.
The speaker is happy to have checked off learning Python from their new year's resolution.
Transcripts
Today is Jan 11th 2022
I decided to start learning Python
though I gave up on it many times before
I already knew Node.js
but I want to learn another script language
so I will be able to handle more types of freelance projects
and I will also be able to read python code for work if needed
in my free time
maybe I can use it to write scripts to help my productivity
Python is a very popular programming language nowadays
when I live and work in the Bay area
I feel like everybody knows Python
big tech companies like google
use python for their backend in some ways
some companies use python for all of their backend
in the company I use to work at (not a software company)
coworkers in the operation team
use python for data analysis
and make reports with beautiful charts for management
even HR's use python to send emails
and they learned it by themselves
so as someone who loves learning new things
I have to learn it too
in fact I have tried learning python
in the past couple years
my previous company even provided
free
python courses and learning groups to employees
but I didn't have time to learn it.
it's like I just get started and then I give up immediately
but this is not an excuse
as someone who worked full time at that time
to make myself learn something completely new
is quite challenging
people say you can always make the time for it if you truly want to do something
but the time is spent for work
now I finally had some time
I will learn it when I am still interested and motivated
I think programming languages are similar
if you already know one language
when you learn a new language
just focus on finding what is different from the language you already know
the basic stuff like data structures
functions
loops and things like that are similar in different programming languages
python and javascript is not that different
I'm not used to that there is no {} in python
instead you would use :
and indent to segment codes
the difference is in the syntax
and data structure
in day 3
I went though all the basics of python
this time I'm glad I didn't give up
up until now I spent less than 14 hours
at this point
i feel like python is
a very clean and simple
it's very easy to set up
the environment
just need to download python package
and that's all
python comes with many modules
just use pip install to grab it
and then you can import the module directly and use it in your code
and make many fun applications
like for web crawler
you will need the request module
for data analysis you will need to install a chart library
then just import it
pass the data and you will get the graph
I feel like
it's a bit easy to use compared to javascript charts
now I have mixed feelings as a js developer
now it seems like I've learned python
but there is just one question left
that maybe many of you are also wondering
what can you do with python?
for me
when I review my videos on Bilibili
to see if people like my content
since Bilibili
didn't allow us to export
my analytics
so I had to check each video individually
and look at the metrics I think it's important to me
and then put them
on my excel template
then I can try to analyze it
but this is quite time consuming
I always had to spend a whole morning to collect the data
in order to be more productive
I need to figure out how to
get my video analytics faster
instead of me having to click on each video and find it
so I will need a crawler
here is the problem
I just went through the whole video tutorial
I still don't know how to make this application
so I had to review a bit of what I learned
and my notes
then I start to figure out how to write a demo of my crawler
first thing is to figure out how to run python script in vs code
and how to install the modules I need
I looked at projects of other people on github as examples
and try to write something similar
this is the learning method I tend to use
it's good that
crawler is simple
step one is to start a request
step two is
to format the data
you get from the request
the tricky part is
whether you can find the request address
and whether it's legal to request data from that address
this something I've been wondering
technically
it's not allow to use crawler to get data from other websites for business use
but it seems like crawlers are so common
that everyone knows how to do it
so to avoid getting in trouble
I will use Bilibili's open api for practice
after creating bug and debug
I officially wrote my first python script
this took me a bit over two hours
just run these 50-lines of code
it will return my video analytics
now I have the data I can do anything I want with it
for example
there is another open api to
get creator id
then we can use the creator id
and get the video analytics of that creator
to analyze
so we can make a
video analytics platform for Bilibili creators
umm that's actually a pretty good idea
another example is that we can use a chart library
to visualize these data
then I will have a personalized
Bilibili video analytics tool
I'll find out the secret to the algorithm
it seems like I will be closer to 100k now
I was going to do that
but then I researched a bit
and find that there are so many different python chart libraries
to avoid making this video too long
let me know if you are interested in
another episode
of python chart library comparison
I can't help to write the same script using node.js for comparison
since it's the language I'm familiar with
it only took 10 min
now let's compare them
I'm not sure if
I made any mistake
for the same
node is much faster in returning data
but the code amount is the same
it's about 50 lines
in terms of the file size
python scripts are much
light weight than a node project
of course
these are all based on a beginner's perspective
it's not a tutorial
in summary
I think python is actually a
good option for beginners
although it's slower
it's easy and light weight
it allows you to get a feel of programming in a short amount of time
before you run out of interest
besides crawler and data visualization
python is also used for writing tests, office automation
data science, etc
further more, it can also use for backend development
machine learning and much more
but don't expect to get into these fields after you learned the language
like web frontend development, you will need to learn the framework
it takes time to master in these areas
and accumulate project experience
formal education is required in some circumstances
long story short
it's not something you can
go from zero experience to getting a job in a few days
if you are interested in backend development with python
I don't think it's a good fit
because there aren't that many companies just use python for their backend
for what I knew
like the big tech companies I mentioned before
they are only using python for part of their stack
if your goal is to get a job
I think it's a good idea to research
whether there are python jobs are out there in your area
and what you personally wants to get into
python is great as a second programming language
especially for people who work in tech
some simple application of python
like data analysis
coding some productivity tools
it will help
in your day to day work or life
when I was interviewing interns in my previous company
in their resume
they like to include
data analysis in the skill section
even though they are not interviewing a programming or
business analysis position
this skill is great for interviewing
a variety of positions
it will be a big plus
ok that would be all I want to share today
I'm happy to check off another of my new year's resolution
thank you for watching
see you next time
bye bye
Посмотреть больше похожих видео
Curso Python #02 - Para que serve o Python?
What is Python? Why Python is So Popular?
Is Python the Coding Language of the Future? A Brief Analysis
Belajar Python [Dasar] - 01 - Apa Itu Python
AI Programming in 2023: Which Language Should You Choose?
#1 Python Tutorial for Beginners | Introduction to Python
5.0 / 5 (0 votes)