Automating My Life with Python: The Ultimate Guide | Code With Me

Automating My Life with Python: The Ultimate Guide | Code With Me

Tiff In Tech

1 год назад

745,015 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Coding with Lewis
Coding with Lewis - 13.12.2022 21:39

Gonna need that source code 👀

Ответить
Nikolay Geogriev
Nikolay Geogriev - 18.09.2023 14:17

I liked how you said: "not gonna explain how to install python", though is this working as intended, it seems to me clean_text would contain only last page, because it's been overwritten in every iteration, and the resulting mp3 would be only for last page?

Ответить
Linh Manh
Linh Manh - 15.09.2023 11:23

Thanks Tiff, but why don't you run the audio file to check it?

Ответить
Andrew Marson
Andrew Marson - 10.09.2023 03:27

why did you source .venv/bin/activate ?

Ответить
Marco Kiss
Marco Kiss - 06.09.2023 14:49

programmin in that chromeeeee

Ответить
Mbro7791
Mbro7791 - 04.09.2023 02:39

Thank you! excellent video

Ответить
Imperative E Marketing
Imperative E Marketing - 01.09.2023 11:12

You seem to be a very sharp tech person, and your pdf to speech automation python script seems to be a very handy time saving script, but now, as I'm sure you know, AI like ChatGPT and many others do that, but I guess it's okay for someone who is learning to program. On the other hand, your delete files in download folder seems to take longer than if you just go into the downloads folder and delete them manually. So people are doing it to learn programming I guess it's okay, but it's a fail when it comes to automation. But I'll give you another chance. So go out there and find some automation scripts that really can save time and effort... you can do it!

Ответить
Dylan Tackett
Dylan Tackett - 29.08.2023 09:07

Hey

Ответить
Tirubix
Tirubix - 16.08.2023 19:03

witch program do you use to code in ptyhon?

Ответить
Samson Kamau Muiruri
Samson Kamau Muiruri - 06.08.2023 19:44

Hi,
Love your videos, what setup (software and hardware) are you using to create them?

Ответить
The Groundskeeper
The Groundskeeper - 28.07.2023 04:08

I can’t tell if this channel is a satire or if this person is being serious. Jesus incompetent Christ

Ответить
Edwin Rosales
Edwin Rosales - 23.07.2023 18:40

Nicely done!

Ответить
Data G
Data G - 22.07.2023 09:11

Nice video and tutorial. Thanks. I

Ответить
KingsWorld2015
KingsWorld2015 - 15.07.2023 02:48

This was cool!

Ответить
Astorga, Dexter Pelaez
Astorga, Dexter Pelaez - 10.07.2023 22:55

AMAZING

Ответить
Dany Premraj
Dany Premraj - 07.07.2023 07:32

Not useful code

Ответить
Mark milan
Mark milan - 01.07.2023 20:25

Wow you made my life easier! Thanks a lot.

Ответить
BizZ
BizZ - 29.06.2023 21:57

How do you get it to delete a specific file type for example if I wanted to delete all files that are .csv?

Ответить
Art Herrera
Art Herrera - 29.06.2023 15:18

Tiff , you are the best !!. I have learned a lot with you !!. Thanks

Ответить
Lofi Girly
Lofi Girly - 26.06.2023 03:19

i love it keep going

Ответить
WisdomGuidedByExperience
WisdomGuidedByExperience - 24.06.2023 06:13

I had to fix the code for the deprecated issues I found as of 2023-06-23. Hopefully the following pasted code will format properly:
import pyttsx3, PyPDF2, sys
from pathlib import Path
from io import BytesIO

with Path.open('book.pdf','rb') as pdfFile:
pdfStream = BytesIO(pdfFile.read())
pdfReader = PyPDF2.PdfReader(pdfStream)
speaker = pyttsx3.init()
# process each individual page
page_num: int = 0
text:str = ''
clean_text: str = ''
for page_num in range(len(pdfReader.pages)):
text = pdfReader.pages[page_num].extract_text()
clean_text = text.strip().replace('\n', ' ')
print(clean_text)

speaker.save_to_file(clean_text, 'story.mp3')
speaker.runAndWait()

speaker.stop()

Ответить
Khawja Farhan
Khawja Farhan - 15.06.2023 19:20

great fun project. let us make a code for FB posting automation in python

Ответить
Ivyne Mpofu
Ivyne Mpofu - 14.06.2023 11:06

You look beautiful 💖.

Ответить
Márcio José Campos
Márcio José Campos - 10.06.2023 22:27

Amazing!!!

Ответить
Seeva
Seeva - 09.06.2023 21:24

I loved this. Would love to see more projects that youve done!

Ответить
Jami Rasulov
Jami Rasulov - 07.06.2023 07:26

in the first part, you got my curiosity. second part, you got my attention

Ответить
Andy Welch
Andy Welch - 06.06.2023 14:28

Beautiful and Smart! Just starting my Python journey - will be tuning in for more! Thx Tiff, keep 'em coming!

Ответить
M H
M H - 03.06.2023 00:40

Nah, women don't know how to code. Some know how to cook though.

Ответить
Omid
Omid - 29.05.2023 02:45

And then came chatgpt

Ответить
TwoBuck Chuck
TwoBuck Chuck - 24.05.2023 04:47

Excellent. Thank you, this gets me excited to learn python.

Ответить
Daniel
Daniel - 23.05.2023 17:22

🔝🔝🔝🔝🔝🔝🔝

Ответить
OutdoorCat
OutdoorCat - 17.05.2023 03:22

Typed exactly as you and I am getting the following error: "Segmentation fault: 11". Google tells me it could be related to macOS compatibility issues or the terminal is trying to access memory it isn't supposed to?

Ответить
Naveen Bhardwaj
Naveen Bhardwaj - 09.05.2023 00:00

🌹🦚🌹 Lovely 🌹🦚🌹

Ответить
Shi-Woon Yi
Shi-Woon Yi - 08.05.2023 21:34

I read webnovels and few years ago before Tencent saw the huge western market there were a bunch of different websites for each novel, they were translated into english.
So keeping track of them became a bit tiring and if I used a webpage if it was down, well RIP.

So I taught myself javascript and made a chrome extension that I can use on my PC and Tablet, using firebase to store my novels database.
I love stats so keeping track of what I read, how many words, chapters etc. was fun and useful. Some novels have character names that I don't like or use censorship on words, replacing them is easy, saving it for each novel individually and so on. Using it daily.

Another project of mine is a tool to add some data into my spreadsheet, I made a project that does a lot of calculations for me and adds it to the Google spreadsheet.

ofc there are others, but those too are my most used and useful ones.

Ответить
Necro
Necro - 23.04.2023 13:15

I feel the second project is kinda useless as is, if you gotta manually enter the file name it would be MUCH quicker to just open the downloads folder, perhaps if u got a lot of say pdfs a better alternative would be to move all the pdfs from downloasd to like downloads/pdf where u can manually review them

Ответить
ali ahmed
ali ahmed - 22.04.2023 03:05

your smart your beautiful and have common love called python
as a result will u marie me🎉❤

Ответить
Vladimir Antonov
Vladimir Antonov - 19.04.2023 19:41

Here we are all looking at the code ... And what is the main thing? The main - is that she is a chic and beautiful girl!!! :)) Yes, and fluent in Python! Wow!!! :))

Ответить
Bartek Rocławski
Bartek Rocławski - 10.04.2023 00:06

Whats the IDE You're using?

Ответить
Electron
Electron - 07.04.2023 18:13

Python World Peace App? Kidding aside, I did ask Chat GPT about things like that. Maybe a million advanced Quantum computers might help it along a bit.

Ответить
Arpan Lidder
Arpan Lidder - 02.04.2023 16:34

Very good topic. Spelling mistakes are normal in live coding situations and non scripted sessions. Don’t initiate influence leakage by apologizing about your spellings when it is not a big deal. You have a good topic, good professional presentation however your copy/ script can be rehearsed to improve the flow. It gets better with experience and chatGPT. Good luck.

Ответить
Roberto Politano'
Roberto Politano' - 31.03.2023 17:28

thx for good information

Ответить
帝嚳
帝嚳 - 30.03.2023 21:31

有點像麻雀變鳳凰的女主角。

Ответить
Nab hash
Nab hash - 24.03.2023 03:43

I don't know how you guys use VS code to run python. I have installed several times and uninstalled it, and went back to Jupyter notebook.

Ответить
Luke Nortje
Luke Nortje - 23.03.2023 10:44

Have you already created a web page? If not could you pls?

Ответить
Tsung-Chih Tsai
Tsung-Chih Tsai - 21.03.2023 16:21

There are two convenient small things. I try first code and see the sentences it print, but it can’t save anything. If I just use "speak.say(clean_text)", I can hear it fine. But when I try to "speak.say(clean_text)", then "save_to_file(clean_text, file name.mp3)", the production of mp3 file ends up being ahead of the actual pronunciation.

Ответить
German To English
German To English - 20.03.2023 10:29

I'd like to hear that resulting book.mp3 file. Is it very robotic or does it sound natural? Is it audiobook quality or would it drive you insane?

Ответить
Ted Wow
Ted Wow - 20.03.2023 08:59

no idea why mine can't find the imports... I've installed them properly.

Ответить