Тёмный

One Day Builds: Automating My Projects With Python 

Hallden
Подписаться 692 тыс.
Просмотров 522 тыс.
50% 1

One Day Builds: Automating My Projects With Python
"Clean Code Friday"
If you want to receive one short email from me every week, where I go through a few of the most useful things I have explored and discovered this week. Things like; favourite apps, articles, podcasts, books, coding tips and tricks. Then feel free to join kalletech.com/clean-code-friday/
In this video I create a shell script and a python script for my terminal that will automate the process of creating new projects for me.
I create a custom command that creates a folder, adds it to my desired directory, opens a web browser, navigates to GitHub, logs in to my account, creates a new repository, then adds the git remote to my local folder, adds a README file, does git add, and then does a commit called “initial commit” and then pushes this to master.
Finally it opens the project folder in vs code.
I really enjoyed this one, I hope you will too!
Here is a link to the project if you want to check it out yourself: github.com/KalleHallden/Proje...
Get access to my programming courses: / hallden
Follow me on instagram: / kallehallden
LiveCoder channel: / @livecoder7639
"Clean Code Friday"
If you want to receive one short email from me every week, where I go through a few of the most useful things I have explored and discovered this week. Things like; favourite apps, articles, podcasts, books, coding tips and tricks. Then feel free to join kalletech.com/cleancode/
CONTACT: contact@kalletech.com
Follow me on:
TWITCH: / kallehallden
INSTAGRAM: / kallehallden
TWITTER: / kallehallden
GITHUB: github.com/kallehallden
DISCORD: / discord
PATREON: / hallden
VIDEO EDITOR: editingmachine.com (use coupon code KALLE to get 50% off your first month)
--------------------------------------------------------------------------------------------------------
GEAR:
kalletech.com/tech/
Songs:
Ghost - Ikson
Reveal - Ikson
/ ikson

Опубликовано:

 

30 май 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 542   
@JP-td8gt
@JP-td8gt 5 лет назад
Finally a real developer that demonstrates they use stack overflow and there is nothing wrongn with using it on a daily basis. Great content
@Hallden_
@Hallden_ 5 лет назад
Haha yes of course, stack overflow all day!
@marconarca2706
@marconarca2706 4 года назад
even professional uses it so why not haha
@sophieosu
@sophieosu 3 года назад
never seen a single dev say it's bad or that they dont use it tbh edit: woops did not realise i just responded to a year old comment
@Tagadarealty
@Tagadarealty 3 года назад
Since you cant know everything, why using StackOverflow could be bad ? Thinking that you are better than everyone and ignore the {Collective Knowledge} is probably the sign that you are one of the worst type of geek/dev/person.
@JP-td8gt
@JP-td8gt 3 года назад
@@Tagadarealty not sure if you meant that for me? But to clear things up I was speaking to an experience I had with someone who actually felt above others. I didn’t provide context on that because it didn’t seem necessary nor did I want to call out anyone. I am 100% for stackoverflow and collaboration.
@TuDoorCinema
@TuDoorCinema 4 года назад
I like the intro.. it’s like a mental break and reminder that there’s something beautiful beyond the screen. Makes me want to take a break and walk outside for a bit.
@CyrisCloete
@CyrisCloete 4 года назад
That "YES" feeling after you got that automated commit is the entire reason I love coding.
@chaks2432
@chaks2432 Год назад
Just finished recreating this project from scratch without watching the video. It was pretty fun and probably one of the projects I've done that I'll be using the most. I also went a lil extra and made a batch file to be able to run it from anywhere on my computer and have it open VS Code so I can get working right away
@skwiid6269
@skwiid6269 5 лет назад
Love the one day builds series! I hope to see more of these on your channel
@Hallden_
@Hallden_ 5 лет назад
I am really glad to hear that, I truly appreciate it And I will not stop anytime soon :)
@reshmakodwani4732
@reshmakodwani4732 4 года назад
@@Hallden_ yes please share more ..It would be so helpful thanks 🙂
@xiaoshou6752
@xiaoshou6752 5 лет назад
Love it so much! RU-vid these days really lacks high-effort content, I really appreciate the thought put in the script and cinematics of your content. Keep it up!
@Hallden_
@Hallden_ 5 лет назад
That's a great compliment to get Josse! I really appreciate that! :)
@WeiseXcV
@WeiseXcV 3 года назад
I love the excitement with each new step working as you intend it to. Awesome video!
@waddle7969
@waddle7969 5 лет назад
Your focus on practicality and optimisation of day to day tasks is so interesting and inspiring, actually. Also i love the cinematography choices!
@Hallden_
@Hallden_ 5 лет назад
Thank you! Haha and yes I am super into the optimization stuff (maybe a bit too much haha) Glad you liked it, I appreciate it! :)
@henton75
@henton75 5 лет назад
Snyggt Kalle! I’m new to Python and programming, so I really enjoy how you explain your thinking and break down the project into a step by step process. Learning a lot from that! Keep it up!
@marcellomenjivar
@marcellomenjivar 2 года назад
"I think this is cool. I don't know why but I think it's cool" It's super cool dude.
@automateddude
@automateddude Год назад
Dude this is cool! I always love these kind of automation project and seeing the computer doing everything in seconds like a ghost that we used to do manually is really great and awesome!
@codinginflow
@codinginflow 4 года назад
Cool stuff. Makes me really interested in learning Python
@aybak3k
@aybak3k 3 года назад
So am I
@ego_sum_liberi
@ego_sum_liberi 5 лет назад
Great video, I like the way you researched everything on the fly then you advanced step by step. Good methodology and way of implementing it. 👍
@davidakinde7427
@davidakinde7427 4 года назад
Your one day build is amazing Kalle, I have been able to customize my own build to create Flutter application and add a template code to the new application
@everydaynormalguy3194
@everydaynormalguy3194 2 года назад
This is how the tutorials should be; With step-by-step problems & their solution. loved it!
@mayraamaral7267
@mayraamaral7267 5 лет назад
I just LOVED everything in this video! It is so high quality as always!
@Hallden_
@Hallden_ 5 лет назад
Thank you Mayra, as always I'm really glad to hear that you liked it! :)
@tabancosmos2235
@tabancosmos2235 5 лет назад
I have been always wanting to do something like that. Glad you came around to do it. :) I am gonna use it.
@Hallden_
@Hallden_ 5 лет назад
Nice! Glad you liked it Taban!
@OpenBots
@OpenBots 2 года назад
Awesome video showing how Python can be used to automate the time-consuming process of creating a new project!
@---David---
@---David--- 5 лет назад
Kalle, like some people have already mentioned. Using the Github API would have been easier and would have been the "official" way to do it. Importing API packages into your code is one of the main pillars of programming. It's interesting that you showed this alternative way though, I personally would have used the API, but this is a creative way of doing it and useful for other types of projects where no API is available.
@AbhikalpUnakal
@AbhikalpUnakal 5 лет назад
While this works, here's a few things you can do to make this even better. 1. use a simple bash script with cURL commands - this gets rid of the overhead of having to use python and selenium. 2. use application specific keys don't mess around with passwords. 3. add in an optional config file to store - project_name, add_readme toggle, priv_pub repo toggle, editor_selector toggle 4. use the tree utility to append the dir listing on your README automatically each time you git add a new file. 5. create a keyboard shortcut on your mac that brings up a terminal screen where you just enter the project_name. 6. add in an auto error logger - to log all new error codes + err_msg's with timestamps. 7. add in an importance_toggle - that checks if the local and remote HEADS match + prevents accidental deletes.
@Hallden_
@Hallden_ 5 лет назад
Wow thanks man! Love that you put in the effort to write all of this, I really appreciate it! And not only from a personal standpoint but this can also be really good for others to learn from so that's also great I will look into this stuff for sure :)
@AbhikalpUnakal
@AbhikalpUnakal 5 лет назад
@@Hallden_ Yeah everyone pitching in helps !! Kudos mate ! :)
@TheoParis
@TheoParis 5 лет назад
im actually trying to make this now so far so good :)
@maxknex050
@maxknex050 5 лет назад
I really enjoy this type of content, keep on the good work man!!!
@Hallden_
@Hallden_ 5 лет назад
Thank you! I really appreciate it :)
@romanf2228
@romanf2228 5 лет назад
Cool, never thought about trying to automate the painful process, thanks Kalle
@Hallden_
@Hallden_ 5 лет назад
That's cool to hear! Thank you man! :)
@MoboMixer
@MoboMixer 4 года назад
Quick tip: Use the little mouse pointer icon at the top left in Chrome Dev Tools to select an element on the page instead of looking for it in the html
@ankitrajput85
@ankitrajput85 5 лет назад
This is so cool. I am gonna do this for all of my repeated task. Thanks Kalle!
@Hallden_
@Hallden_ 5 лет назад
Thank you! Yes do it :)
@MrFadbamsen
@MrFadbamsen 5 лет назад
For a lot of forms you can end the last line with to press "Enter" instead of finding the button and pressing it.
@rockboyjazz
@rockboyjazz 5 лет назад
This is awesome! Thanks for sharing this with us.
@WilliamWeekesJr
@WilliamWeekesJr 5 лет назад
Dude! This is so inspirational! Thanks for the motivation - that this can be done.
@Hallden_
@Hallden_ 5 лет назад
Thank you William! I appreciate it, and I'm glad to hear that this gave you some motivation :)
@4everdefence
@4everdefence 5 лет назад
I see someone has been reading, how to automate the boring stuff with python
@PhoebusG
@PhoebusG 4 года назад
Got the course and book but I keep getting diverted into work or volunteering... To actually focus on finishing it hehe.
@viso7251
@viso7251 4 года назад
Good oldMr.albert swiegart...
@rayvvenn
@rayvvenn 4 года назад
Oh yes
@liuhaochen487
@liuhaochen487 5 лет назад
0:00 I thought I clicked on the wrong video...
@kelvinvalencio2
@kelvinvalencio2 5 лет назад
"Did I just click a garden review video?"
@tbm5k
@tbm5k 5 лет назад
This project is awesome Kalle 👏😜 I'm loving it😁
@Hallden_
@Hallden_ 5 лет назад
Thank you man! I am glad to hear you enjoyed it, it was a lot of fun to build! :)
@rafabi3585
@rafabi3585 4 года назад
Great video and awesome content! I've read some of the comments and nobody seems to have told you that there is a much easier way of finding the element you are looking on a webpage: In that same place on the Elements tab there is a button on the top left corner that allows you to click on the element you want and it will automatically takes you to the part of the html code that has it. (It can also be enabled by clicking Ctrl + Shift + C). Or even faster by right clicking the button / text you want and selecting the "Inspect element" which will even open the dev. options for you :3 I hope this small tip helps you as much as you help all of us. Keep it up!
@Hallden_
@Hallden_ 4 года назад
Nice! Yes I definitely appreciate that piece of advice, it is warmly welcomed. So thank you, great tip! :)
@aymaanahamed2781
@aymaanahamed2781 2 года назад
Your intro is mind blowing
@shivangkumaragrahari6717
@shivangkumaragrahari6717 3 года назад
Idk if you will read this.I am a developer on the process and your videos have been a great idea on how to work in various software development field. Love the content
@MYMOMISAMAZING1
@MYMOMISAMAZING1 5 лет назад
Instant subscribe. Great video gave me a lot of ideas for web automation. Look forward to new vids keep it up
@Hallden_
@Hallden_ 5 лет назад
Thank you for that! I really appreciate it :)
@AstonJay
@AstonJay 3 года назад
This was really awesome! Thank you for the tutorial 😁
@PedroLucas-se7wp
@PedroLucas-se7wp 5 лет назад
This is incredible!! U are amazing bro!! I've never seen something like that before
@Hallden_
@Hallden_ 5 лет назад
Haha thank you! :)
@hameedali2963
@hameedali2963 4 года назад
It's really amazing, I have never seen it before.
@tbm5k
@tbm5k 5 лет назад
Nice content Kalle, you are always killing it 👌. BTW congratulations on 21K subs 😁
@Hallden_
@Hallden_ 5 лет назад
Thank you again man, I really do appreciate it! And yes thank you, 21k is incredible!
@Emalo
@Emalo 3 года назад
Awesome videos, keep up the good work!
@xale0n
@xale0n 3 года назад
Hey! A cool tip when you use the Chrome console is to use the arrow in the top left of the console. When selected, you'll be able to directly point an element on your page and it will open the html code of this element. It's like a shortcut instead of trying to open all the html balises one by one until the one you're searching for 😊
@kelvin8850
@kelvin8850 5 лет назад
This is super awesome. Congratz!
@Hallden_
@Hallden_ 5 лет назад
Thank you! I appreciate it! :)
@Linux333
@Linux333 3 года назад
excellent work man! thx for great content
@averageplayer8115
@averageplayer8115 3 года назад
Ye the first time I saw his vid I took up python and made a script that arranges files into folders according to extensions and folders. It was his suggestion. Spent 2 days getting familiar with python and 1 day on the project. Totally worth the effort and time even if it was small.
@busiedcomb14402
@busiedcomb14402 5 лет назад
you can click on the pointer in the box on developer toools to ato navigate to the element you are hovering over
@manuscorner35
@manuscorner35 5 лет назад
Idk but you inspire me so much, thanks for the videos, keep it up man :D
@Hallden_
@Hallden_ 5 лет назад
Thank you! I am humbled to hear that this is the case, it inspires me that you say this :)
@haf33z
@haf33z 2 года назад
i really like it when people use automation for things that need automation kudos
@struki783
@struki783 5 лет назад
Awesome trick and video!!! This will help me a lot!!! THANKS :)
@Justin_Case69
@Justin_Case69 3 года назад
Great idea! Thanks for an inspiration :)
@robinnowak8721
@robinnowak8721 5 лет назад
Really cool intro and great video! 👍🏼 I really like the idea behind it, I think about using yours or try building my own 😁 Keep up the good work Bro 😎
@Hallden_
@Hallden_ 5 лет назад
Thank you man! Yeah use mine or build it yourself it was really fun to do :) Appreciate you man!
@Wuddigot
@Wuddigot 4 года назад
I have to get this going, too. Great idea
@Mohith7548
@Mohith7548 5 лет назад
You could have used the Project feature in the Github Which also does the same thing but more organized way for TODO tasks.!
@skyebrownh
@skyebrownh 5 лет назад
kalle is video was amazing! I thought what you built to automate the new project process was really cool too. I might have to use this for me as well...
@Hallden_
@Hallden_ 5 лет назад
Thank you! That's cool, try it and let me know what you think of it! :)
@xgriff91
@xgriff91 5 лет назад
You could have used a dictionary from an external file to get the password without having to blur it. Your videos really motivate me a lot to code keep uploading pls :)
@l_combo
@l_combo 5 лет назад
or setup a certificate and use that instead, it's a little more complicated but cleaner.
@Hallden_
@Hallden_ 5 лет назад
Great suggestion, I will try that in the future :)
@oscarmartinezbeltran
@oscarmartinezbeltran 4 года назад
I like your automation videos! they are very inspirational ! Automation is cool . !! thanks!
@robimegu3712
@robimegu3712 3 года назад
Is there a way to like this video infinity time? I reviewed the video and I wanted to like it, then I just noticed that I already liked it earlier:)) Awesome content! 💙
@davebruwer7870
@davebruwer7870 3 года назад
I'm definately going to do this!
@krzysztofsielewicz4161
@krzysztofsielewicz4161 5 лет назад
Thank you for this great video!
@illmagnetic
@illmagnetic 5 лет назад
man you motivate the hell out of me... this is awesome. fyi you can do this with python and only python without a shell script, just make the python file executable. There's probably multiple ways of doing this but this is great. Love your channel.
@Hallden_
@Hallden_ 5 лет назад
That's awesome to hear! I am glad that I can motivate you. Yeah I saw that afterwards haha would have been a more neat way to do it 😆
@ryanchandler3199
@ryanchandler3199 5 лет назад
You should try to use '#!/usr/bin/env bash' instead of '#!/bin/bash' for better cross-platform compatibility, but nice work!
@Hallden_
@Hallden_ 5 лет назад
Alright, noted Thank you! :)
@jakedarby1972
@jakedarby1972 5 лет назад
Does Mac OS not support #!/? It's what I'd do on Linux and avoids needing the intermediary shell script. Edit: Ah, I didn't realise you were using the shell script to perform the git/code steps, my bad.
@shahbozabdullayev5583
@shahbozabdullayev5583 4 года назад
Thank you for the great idea just created similarly to yours with .bat file and removed time taking stuff out.
@user-ks4us7ix5u
@user-ks4us7ix5u 3 года назад
there is a github cli with which you can create a repo from the commandline and it automatically adds the remote to your folder
@akshatpandey8698
@akshatpandey8698 3 года назад
This was just amazing
@DividedStates
@DividedStates 3 года назад
I really liked this. It is a useful script in general. It is fantastic for beginners, nice hands-on practice in webscraping and heading right into API territory (which properly would have been much easier). Overall a cool way to learn the basics and start organising your stuff from the get go. This really can be such a useful daily helper. Now that you have created so many depositories, you might need to a script to delete them again. XD
@nowyouknow2249
@nowyouknow2249 5 лет назад
Very serene and cool environment. Nice tutorial
@Hallden_
@Hallden_ 5 лет назад
Thank you man, and yes love the environment here! :)
@awaraamin6850
@awaraamin6850 3 года назад
Thank you Man, I like it
@lmagiczlukas4891
@lmagiczlukas4891 5 лет назад
Great for me. Thank you!
@subhadipdutta1999
@subhadipdutta1999 3 года назад
awsome one buddy . Love from India ❤❤👍👍
@veronicahartono1408
@veronicahartono1408 Год назад
what a great content!! thank you
@YoSoyRaulTV
@YoSoyRaulTV 5 лет назад
at 12:10, I dont use find_element_by_css. I just import time, then wait 3 seconds after setting up the repo name, and then just make the click.
@adderall7150
@adderall7150 5 лет назад
Such a cool idea! Good job
@Hallden_
@Hallden_ 5 лет назад
Thank you, I am glad to hear you liked it! :)
@a.anvarbekov
@a.anvarbekov 4 года назад
Thank u Kalle, I like ur videos
@madroksgames1907
@madroksgames1907 5 лет назад
Love this series, make me want to do one day builds too
@Hallden_
@Hallden_ 5 лет назад
Nice! I'm glad to hear that! :)
@filmshack6688
@filmshack6688 3 года назад
damn i just learned selenium and this is the first time i've knew more than the programmer im watching finally getting somewhere with code
@nepalcodetv6298
@nepalcodetv6298 5 лет назад
Awesome Content love to see tutorial type video also
@o0December0o
@o0December0o 4 года назад
On the 'Elements' tab, instead of going down the elements, you could just use the select element button on the top left corner and click on the input box. It jumps right to that element for you.
@CaffeineGlitch
@CaffeineGlitch 2 года назад
Love your intros
@utpalsavaliya761
@utpalsavaliya761 4 года назад
Instead of finding each element by looking top-down in the html, you could have just clicked that cursor kind of button in the top left of the inspect window, and then click on the required element. That could have saved you a lot of time!
@muhammadashir6105
@muhammadashir6105 5 лет назад
bro lit videos, appreciate the work
@Hallden_
@Hallden_ 5 лет назад
Appreciate the comment man! Glad to hear you like them :)
@joshuabudiarto5036
@joshuabudiarto5036 3 года назад
Very useful project!
@orestborovets2140
@orestborovets2140 5 лет назад
Awesome!
@andikakurniawan4188
@andikakurniawan4188 Год назад
cool, I want to be efficient as you. Now, I learn some good things
@chaker7778
@chaker7778 5 лет назад
very nice intro ...
@zanidd
@zanidd 5 лет назад
Doesn't GitHub provide an API to do this kind of things?
@maschinensohn
@maschinensohn 5 лет назад
# yup, its called "git" git init && git add . && git commit -m "first commit" git remote add origin git@github.com:/.git git push -u origin master
@rohitkrishnan5456
@rohitkrishnan5456 5 лет назад
Lmfao
@Hallden_
@Hallden_ 5 лет назад
Yeah, but I wanted to learn some web scraping :)
@dknorr8
@dknorr8 5 лет назад
When in the dev tools in chrome, if you click button in the top left of the panel that looks like a mouse on a square, it will let you go to the web page and click on an element and it will highlight the HTML instead of searching through it all :)
@pranftw
@pranftw 3 года назад
You can also run the selenium driver in headless mode, which runs the script in the background so it doesn't use your screen real estate. Try that!
@tomu_sange
@tomu_sange 3 года назад
I love your teaching bro
@joshuacarpentier951
@joshuacarpentier951 5 лет назад
how to use on Linux I followed the instructions on GitHub but I still have issues with the directory even after editing both the paths and changing them to the Linux path in both the create.py and .my_commands.sh and get this error in terminal python: can't open file 'create.py': [Errno 2] No such file or directory bash: cd: /home/jac/Documents/Projects/MyProjects/mydayalljgj: No such file or directory Reinitialized existing Git repository in /home/jac/.git/ fatal: remote origin already exists.
@99vishaal
@99vishaal 5 лет назад
Awesome!!
@Hallden_
@Hallden_ 5 лет назад
Thank you!! :)
@HoppiHopp
@HoppiHopp 5 лет назад
That’s a nice exercise. 😊
@aggreychinthalima7483
@aggreychinthalima7483 5 лет назад
Nice content I really enjoyed
@grantwilliams630
@grantwilliams630 5 лет назад
To be honest I probably would have just made a bash function in my .aliases file to do all of this
@Hallden_
@Hallden_ 5 лет назад
Good choice :)
@lucasbraga5507
@lucasbraga5507 5 лет назад
Sensacional! Parabéns!
@rishitkurup2298
@rishitkurup2298 5 лет назад
Great Video Man!!!
@Hallden_
@Hallden_ 5 лет назад
Thank you!! :)
@AditKapoor
@AditKapoor 5 лет назад
I can't find the .bashrc file to add the source ~/.my_custom_commands.sh command to have the "create" command available on every session
@JohnDoe-df8bj
@JohnDoe-df8bj 5 лет назад
Nice video! Wouldn’t mind seeing more python automation
@Hallden_
@Hallden_ 5 лет назад
Thank you, and I wouldn't mind making more! Love these projects :)
@LucasSilva-xb7iw
@LucasSilva-xb7iw 5 лет назад
Great video! You can also use a selenium headless so it won't open and close a browser everytime and it is a little faster.
@Hallden_
@Hallden_ 5 лет назад
Aha okay nice! Thank you, I will update it to do that for sure :)
@mrzli44
@mrzli44 5 лет назад
I like you like Python! I am also blowen away by its readability.
@arbazkhan8320
@arbazkhan8320 5 лет назад
Wow awesome job 👍👍👍
@Hallden_
@Hallden_ 5 лет назад
Thank you! :)
@KingZero69
@KingZero69 5 лет назад
i could have lived without the 1 minute faux artistic intro...
@cytixify
@cytixify 5 лет назад
Trust me you would be dead!
@abdulrahmanalduraiweesh5120
@abdulrahmanalduraiweesh5120 5 лет назад
just skip it if it was that bad
@el_teodoro
@el_teodoro 5 лет назад
@@abdulrahmanalduraiweesh5120 I think he did... We all did
@turdle2767
@turdle2767 5 лет назад
Over indulgence. Someone is feeling themselves too much.
@hunggarchristian
@hunggarchristian 5 лет назад
yeah but it was cool so
@nadavram7322
@nadavram7322 5 лет назад
Damn those opening shots were some next level Peter Mckinnon shit
@Hallden_
@Hallden_ 5 лет назад
Haha thank you!
Далее
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Просмотров 1,6 млн
How To Structure Your Programming Projects
13:11
Просмотров 258 тыс.
Иран и Израиль. Вот и всё
19:43
Просмотров 1,2 млн
I Spent 120 Hours Coding This!
24:01
Просмотров 109 тыс.
Automate your job with Python
6:07
Просмотров 389 тыс.
3 Python Automation Projects - For Beginners
53:11
Просмотров 552 тыс.
5 Amazing Ways to Automate Your Life using Python
18:40
5 Unique Python Projects (beginner to intermediate)
16:54
20 Beginner Python Projects
3:11:07
Просмотров 715 тыс.
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Иран и Израиль. Вот и всё
19:43
Просмотров 1,2 млн