Automating My Workflow With Python

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024

Комментарии • 396

  • @Hallden_
    @Hallden_  4 года назад +236

    Sooo after reading some comments I have learnt that RUclips has an API that I could have used. I did not even think to look for it, would have saved me so much time if I did though 😅
    Thank you guys for sharing this kind of helpful info, that’s exactly what I want to see in the comment section!

    • @noahnolte7288
      @noahnolte7288 4 года назад +9

      Man, whenever you start a project, always Google " API". Works like a charm!

    • @MrKaspi097
      @MrKaspi097 4 года назад +1

      I was about to say 'what about to use yt API to listen for new vid event xD
      I'm gonna try to make bot for discord tbh xD

    • @rockysingh5262
      @rockysingh5262 4 года назад +2

      Checkout Instagram graph API for posting to Instagram.. Although to use the api you would need to get permissions from devloper.Facebook that takes around 3-4 days.. involving building a test app for Facebook to verify

    • @redwilliams1804
      @redwilliams1804 4 года назад

      You should really look into getting a dedicated computer like a Pi4 for some of these things, I think you could find a lot of use from it

    • @redwilliams1804
      @redwilliams1804 4 года назад +1

      You should also work on putting Read Me files in your repositories, as well as general descriptions. Makes everything a lot easier to understand to people/employers who come to look at the project.

  • @JulianaPassos
    @JulianaPassos 4 года назад +109

    Great job, Kalle!! “Never spend 6 minutes doing something by hand when you can spend 6 hours failing to automating it” 😆

  • @sainathsingineedi2922
    @sainathsingineedi2922 4 года назад +280

    Suggestion: You can use RUclips api instead of scraping

    • @Hallden_
      @Hallden_  4 года назад +74

      Haha omg, I didn’t even think to look for that

    • @alfonsodonotsi6691
      @alfonsodonotsi6691 4 года назад +18

      @@Hallden_ pytube is a very good library right now for python, ensure you use the latest version of it on github.

    • @minzi8422
      @minzi8422 4 года назад +1

      I was gonna say the same thing, that would be so much more convenient

    • @miyazjee
      @miyazjee 4 года назад +2

      RUclips api sucks in my opinion because it has quotas. I used it for fun and I got banned after some api calls 😂

    • @sanjacobs6261
      @sanjacobs6261 4 года назад +4

      @@miyazjee Rate limits, you mean?

  • @aricrepp3253
    @aricrepp3253 4 года назад +41

    Failing let’s me know you’re real, that developing is trial/error and not just this mythical thing that only certain people are capable of

  • @TrivoPlays
    @TrivoPlays 4 года назад +100

    the first 3mins pretty much describe my day as a dev: Doing smth, implementing smth just to then realise after 6hrs "oh no that aint workin"

  • @dragomir44
    @dragomir44 4 года назад +6

    Kalle, I think it's super cool that you showed the part of failing with the Instagram API. It shows integrity, that you are courageous enough to post the failure and it shows other developers that not everything is done in 10 minutes but sometimes you have to spend 6 hours and you won't get further than you started. Please keep doing this and perhaps also tell why you think it failed or what was hard about it!

  • @andresromerodev
    @andresromerodev 4 года назад +37

    Would be nice to see you putting this on AWS or any other cloud service as a cron/background job so it is fully automated as you don’t need to manually run it or have your computer on. 👍🏼

    • @tech4028
      @tech4028 4 года назад +5

      Very nice comment. Very little content on this topic on the internet

    • @Tomasngu
      @Tomasngu 4 года назад

      Yes I have been thinking this to myself as well, if he close the terminal, the script launch.

    • @nicktomasi1649
      @nicktomasi1649 4 года назад +1

      @@Tomasngu Something that allowed me to get around the whole terminal window closing and allowing the script to run is a little tool called "tmux". There are a bunch of cheat-sheets online to get you started. Otherwise, the cron job Andrés Romero mentioned would be the cleanest, and least resource intensive way to go I think.

    • @augustinemensah
      @augustinemensah 4 года назад

      @@nicktomasi1649 i just want to be sure...did you mean "termux" or "tmux"?

    • @provsalt
      @provsalt 4 года назад

      he can also do it in nodejs with google api and use firebase functions

  • @Ph34dz
    @Ph34dz 4 года назад +5

    Instead of uploading video to youtube manually, create a program for it, and then attach the code that posts on ur twitter automatically when the youtube video is successfully uploaded.

  • @brando2818
    @brando2818 3 года назад

    watching other people fail reminds me that failing is a part of the process. true value comes from seeing others persevere when plan a doesn't work out. love these videos, keep it up!

  • @conqu3red545
    @conqu3red545 4 года назад +1

    RUclips has an amazing api, probably one of the best I've seen from any large company or website.

  • @jamescarter5466
    @jamescarter5466 4 года назад

    I love how things don't always go to plan, please keep these in, place is a wash with people who just show the perfect result.

  • @priyanshusaraf9495
    @priyanshusaraf9495 4 года назад +32

    Kalle’s story:
    Spending 5 minutes on making a story?
    NAHHHHH
    spend 6 hours to automate the task?
    You got me baby!
    😂😂😂😂😂😂
    Anyways, amazing RUclips video...always pumped for your content kalle. Keep it up!

    • @pai64
      @pai64 4 года назад +5

      İt will be equal after 72 days

  • @pgr4567
    @pgr4567 4 года назад +16

    Just a suggestion: IFTTT is made exactly for these tasks and they have a nice gui which could save you some time.

    • @Knee-Lew
      @Knee-Lew 4 года назад +4

      True, but it'll improve dev skills if we can do this in a hard way, a.k.a. coding.

    • @prodigy803
      @prodigy803 4 года назад +5

      I know!! I try to inform people all the time, especially all these cooking channels like broooo you can save so much time just ordering from a restaurant. Work smarter not harder people.

    • @rileydavidjesus
      @rileydavidjesus 4 года назад

      Iftt is nice!

    • @gfifer1
      @gfifer1 4 года назад

      IFTTT is also extremely unreliable in my experience. Tasker is much better, although some of it's more powerful features require root access on your device.
      Also it's just more fun to make things from scratch on your own!

    • @fedybelaid4358
      @fedybelaid4358 4 года назад

      IFTTT's services are now limited since they launched a paid version!

  • @sergeykholkhunov1888
    @sergeykholkhunov1888 4 года назад +1

    Thank you for sharing all of your struggling, I love to see real-life programming, when you just have a goal without knowledge. Most authors show only recorded work, where they done job easy and fast, which is really annoying, because you can't do like they can.

  • @Eamo-21
    @Eamo-21 4 года назад +1

    Such good fun writing these little automations! Love being a developer

  • @conflikt89
    @conflikt89 4 года назад +42

    No linux, and no vim. A regression!

    • @metastag
      @metastag 4 года назад +2

      He mentioned he was running into some sort of problem when trying to run the program in WSL, so he decided to make the program in windows. As for Vim, he probably doesn't have the windows versionn ig

    • @mirsella6204
      @mirsella6204 4 года назад +1

      @@metastag the program was already on windows, only running it in the wsl environment which is not really linux. the comments was talking about real linux, the open source one that you install as a whole OS not some Microsoft proprietary shit.

    • @bjornotto98
      @bjornotto98 4 года назад

      Anyone knows why he switched back?

    • @JulianaPassos
      @JulianaPassos 4 года назад

      @@bjornotto98 I think he switched his Mac for a Lenovo to get a powerful processor + 32gb RAM or so.. there are some videos of the unboxing and the reasons for the change.

    • @bjornotto98
      @bjornotto98 4 года назад

      @@JulianaPassos I mean why he switched from Linux to Windows also from VIM to I guess sublime?

  • @tongaib
    @tongaib 4 года назад +2

    I'm currently learning python and these videos are just class. Keep it up 👍

  • @developerhabits
    @developerhabits 4 года назад

    Really cool idea and an example why coding can save time.

  • @s70f59
    @s70f59 4 года назад +1

    I was waiting for a video like this!

  • @carlosherrera__
    @carlosherrera__ 4 года назад +1

    Good video Kalle! Make more videos about workflow automatization 😁

  • @alishahmughal6125
    @alishahmughal6125 4 года назад

    Cool video kalle , want more like this❤

  • @anasswakach1264
    @anasswakach1264 4 года назад +1

    please do more API implementation videos, btw I love your programming setup, and Desk.

  • @msNakato1
    @msNakato1 4 года назад +20

    perfect dude! keep do that python, js and linux! web scraping, python automation, web dev and linux stuff! keep do that!

    • @manishswami7512
      @manishswami7512 4 года назад +1

      Keep do that.......?

    • @MrHelpingHand
      @MrHelpingHand 4 года назад

      @@manishswami7512 It's really not that hard to understand what he was trying to say.

    • @manishswami7512
      @manishswami7512 4 года назад

      @@MrHelpingHand take it easy bro

    • @MrHelpingHand
      @MrHelpingHand 4 года назад

      @@manishswami7512 no u

  • @owencodes
    @owencodes 4 года назад

    Dude your doing awesome loving all the new videos you keep loading well done keep it up :)

  • @brandon183
    @brandon183 4 года назад

    A clean your room intro, genius.

  • @star-warsien
    @star-warsien 4 года назад

    This was great! I actually liked the struggles that you posted too, it makes it more realistic and relatable. Good job man!

  • @auroraacupuncture
    @auroraacupuncture 3 года назад

    This is exactly what I was looking for! You are genius!

  • @najehsassi3821
    @najehsassi3821 4 года назад +2

    Love you from Tunisia

  • @Kappq
    @Kappq 4 года назад

    Loving these daily videos 😍

  • @georgebassemfouad
    @georgebassemfouad 4 года назад

    Finally python automation thank you for listening to me that is the difference between any other RUclips channel

  • @mmalouf
    @mmalouf 4 года назад

    Apart from the youtube api you can get that info with a basic curl request

  • @etuh
    @etuh 4 года назад +24

    Where did the "Hacking WIFI passwords" video from yesterday go?

    • @melodevv
      @melodevv 4 года назад

      Been asking myself the same question☹

    • @Apixdan
      @Apixdan 4 года назад +3

      Wasn't his best work, just talked about doing it instead of doing it. Then used a dictionary using a known password to find his password. I definitely still enjoyed it, but probably needed to be fleshed out a bit more

  • @ByteBound
    @ByteBound 4 года назад

    Nice explanation Kalle! You’re correct. Last I checked posting content to IG requires the ‘content publishing’ permissions for your FB app. Unfortunately FB have decided to restrict access to ‘marketing partners’ only (Hootsuite, etc) and therefore have made it impossible for smaller devs to utilise this functionality. They’ve also deleted a lot of the old docs in relation to the beta and potential release date. Sounds like some of the big tech companies are throwing their money around for that competitive advantage 🤐

  • @seanredmond9212
    @seanredmond9212 2 года назад

    Cool video...and fair play for being honest about how it can take long for some parts as can relate to this 😀

  • @KosPerera
    @KosPerera 4 года назад

    Suggestions, RUclips Share on Twitter can simplify the job. Also Puppeteer is ideal for scrapping and automate web scraping without having to use Selenium.

  • @reggiejay9881
    @reggiejay9881 4 года назад

    I think videos SHOWING mistakes is really cool and relatable lol. Can help us all learn from your mistakes too !! haha

  • @OssmanRauf
    @OssmanRauf 3 года назад

    2:28 for people trying this now Instagram added the feature to create post with api 👍

  • @KieCodes
    @KieCodes 4 года назад +3

    Hey Kalle. Great video. Here are two questions or ideas for further improvement:
    1. you could try to use the yt api to get your latest video.
    2. have you tried using selenium for posting to insta?
    Cheers!

    • @KieCodes
      @KieCodes 4 года назад +1

      Oh. Just saw your pinned comment, which answers my point 1. 😅

  • @IliasYahia
    @IliasYahia 4 года назад +1

    Great video. I don't if you know but youtube has an API you can check Tom Scott video he used it to update the title of the video. Fro Instagram there is a repository on Github called Instagram private API and with that you can pretty much do anything. Cheers!

  • @Jose_T131
    @Jose_T131 4 года назад

    Just starting with python, good content!

  • @elci096
    @elci096 4 года назад

    You are an inspiration. Congrats

  • @rashadarbab2769
    @rashadarbab2769 4 года назад +1

    I didn’t realize just how much stuff could be done easier with python.

  • @financialrebirth7010
    @financialrebirth7010 4 года назад

    instead of leaving the python script running in the background, you can set it as a scheduled task in task scheduler (cron on Linux) and then you wont waste system resources having your python script waiting for it's next run time

  • @laxfloop
    @laxfloop 4 года назад +1

    Brilliant!!!

  • @skidoodles
    @skidoodles 4 года назад +4

    Yow why this notif waking me up at 4AM hahaha love it

  • @eitanf6005
    @eitanf6005 4 года назад

    Love the new videos.
    The old ones were a little better,but that's really good too.

  • @jerryjonsson9850
    @jerryjonsson9850 4 года назад +1

    I was looking at the instagram api recently also, my understanding is that you need some "for business" account to be able to POST to it. Liking your videos btw keep up the good work!:-)

  • @jithin0075
    @jithin0075 4 года назад +1

    Plss do this type of python videos daily

  • @not_a_cool_handle
    @not_a_cool_handle 4 года назад +1

    Windows: Well, well, well, look who's back

  • @VpilsProductions
    @VpilsProductions 4 года назад

    There's unofficial Instagram API on GitHub made by ohld
    called igbot. It's no longer maintained, but still works (was using it ~week ago and it was possible to post image to feed and story)

  • @web_masud
    @web_masud 4 года назад

    awesome amazing love it sir

  • @__se7entin__
    @__se7entin__ 4 года назад

    Dude your songs are super good. Most of them are lofi or indie which i REALLY LOVE. Pls put their names in the caption too💚

  • @AshokTak
    @AshokTak 4 года назад +17

    Where is hacking wifi video? I missed it :( Can we see it?

  • @maulikgoswami6416
    @maulikgoswami6416 4 года назад

    Please make Part-2 of Instagram post. BTW love your videos ❤ Love From INDIA 🙋‍♂️

  • @Claudiolibe
    @Claudiolibe 4 года назад

    You could use a crontab to schedule the program execution everyday 😃🤘

  • @tolayapanda
    @tolayapanda 4 года назад

    Loved this! While most people have had waaay better suggestions for how to keep this up and running (like raspberry pis, AWS and what not, since you're on windows, you can use windows task manager). It would pretty much replace your while loop, and you'd be able to play with batch files if you want to ;D

  • @Aj-hz4dv
    @Aj-hz4dv 4 года назад

    Test1, Test2, Test3 .....
    No one will understand this, just the legends and kalle of course !! 😁✌

  • @tatahari
    @tatahari 4 года назад

    Nice one Kalle

  • @enzothiebaud1713
    @enzothiebaud1713 4 года назад

    Continue i love this video

  • @ofsanjay
    @ofsanjay 4 года назад

    For learning code its very good method.
    But if you want to automate this like selenium. Use selenium chrome ide or macro recorder...

  • @zacarinanye
    @zacarinanye 4 года назад

    Got that quarantine cut I see 😂

  • @louielouie9502
    @louielouie9502 Год назад

    Yo, I'm speechless. Now I know I can recreate my most successful videos on RUclips to automate posts on other social platforms

  • @JeremyFTW0
    @JeremyFTW0 4 года назад +1

    so i basicly made a bot for uploading to instagram the other day, the only problem i walked into was when uploading the image it gives a explorer pop-up, and i couldnt upload a picture without directly typing it in the explorer. which made it very limited, i couldnt use the computer when the instagram script was running because it would mess up the typing in explorer. i havent found a workaround for this and i would be so happy to fix this!

  • @shahzansadick1248
    @shahzansadick1248 4 года назад

    That intro music is so underrated

  • @tacozmacleo
    @tacozmacleo 4 года назад

    If you are only going to be scrapping a homepage you should look into scrary.spider (for python).

  • @AventadorLP1
    @AventadorLP1 4 года назад

    Instagram is easier to do via requests and is possible to post picture. Use the ssid cookie from your account for Authentication (lasts a year). You can then scrape csrf token and replicate the post image requests from web

  • @luisbarbosa5597
    @luisbarbosa5597 4 года назад

    golden. thanks for sharing bruh

  • @swaminathan6332
    @swaminathan6332 4 года назад

    Suggestions:- if you want to automate yourself you can use pyautogui its a very convenient library for python from Instagram website i think we can't post images!!! So you can try to install Instagram phone extension on your chrome and using the above mentioned API you automate through post images on the Instagram as well as stories i think so why don't you give it a try!!!

  • @suhas5214
    @suhas5214 4 года назад

    I know it's an different feeling doing this automation using Python, but you could try Microsoft Flow. The same task could be done in matter of 10mins. Ofc like the requirements you wanted to include may not be possible, but just saying Microsoft Flow is great.

  • @pierrad650
    @pierrad650 4 года назад

    You could use Cronjob to run your script every day for example. Great video by the way

  • @aakashjana6225
    @aakashjana6225 4 года назад

    Now i am going to make an automation script so that I am the first one to like Kalle's video on RUclips. 😎😉

  • @djingoblip4318
    @djingoblip4318 4 года назад +26

    Best tips for learning Python? (i know a liitle bit about HTML and CSS)

    • @andreadamsen4930
      @andreadamsen4930 4 года назад +4

      Start a flask project

    • @miguelcelorio7982
      @miguelcelorio7982 4 года назад

      If i were you i would start right now, just follow some RUclips course or any guide, but the most important is to start and be consistent

    • @mikobrown2953
      @mikobrown2953 4 года назад +2

      Honestly, fastest way to learn basically everything need is to just read the tutorial on the python website

    • @saidneder41
      @saidneder41 4 года назад +5

      My first programming language is Python, and my recommendation is not to learn ANY programming before programming logic, if you understand programming logic, you can understand any programming language

    • @colorage
      @colorage 4 года назад

      Try to solve some tasks from codewars.com

  • @daddyofalltrades
    @daddyofalltrades 4 года назад

    If you don't find api for insta that works, you can use selenium with headless chrome instead. It is what I do. Great video ! Hats off !!

  • @DevlogBill
    @DevlogBill 2 года назад

    Hi Kalle, been learning JavaScript for almost 6 months now and I decided to learn Python for automation as well as of yesterday. I feel ready to learn Python because I know the fundamentals. Any ideas you could share for creating cool automation ideas, and loved the video excellent!

  • @AnasHart
    @AnasHart 4 года назад

    Hi Kalle, could you do a dynamic web scraping or Selenium tutorial please.
    I cannot get the hang of it for some reason!

  • @ALWALEEDALWABEL
    @ALWALEEDALWABEL 4 года назад

    we need part 2 👍😯

  • @VamsiKrishna-pp4fy
    @VamsiKrishna-pp4fy 4 года назад

    RPA - UI path will take just 1 hour and can almost scrape every website with ease.

  • @kneelesh48
    @kneelesh48 4 года назад

    You could use beautifulsoup instead of selenium. Much easy on resources

  • @tyronestephen4263
    @tyronestephen4263 4 года назад

    Nice video, youtube also has an api to make things easier

  • @lukereiner
    @lukereiner 4 года назад

    That's cool!

  • @ACHTech20
    @ACHTech20 4 года назад

    For instagram you have to use pyautogui and beautifulsoup4 for automation because there is no any api.

  • @Nora-bb5tr
    @Nora-bb5tr 4 года назад

    I don’t have any experience in this stuff.. but I am wondering why you couldn’t do the auto post to Instagram. I remember watching one of your videos (I think it was a one day build) where you automated posting Instagram photos. So, I though you could use that and just change the part where it was checking what day/time to post.
    Anyway, It is really nice project and I hope you can finish it ! Good luck 👍🏼

  • @Vexxlol
    @Vexxlol 4 года назад

    8:30 Instead of saving the video name, you could save the video ID just in case you decide to change the name of a video.

  • @dezzorhellian6089
    @dezzorhellian6089 4 года назад

    Programmes after spending 5 days to automate a 5 minute task * HACKERMAN

  • @Gladiator-wy5qb
    @Gladiator-wy5qb 4 года назад

    I just have a request:"Make a tutorial series on Pyqt".

  • @alktal_ksa
    @alktal_ksa 4 года назад +1

    Yay im early I love this channel

  • @ephraimmedeiros8181
    @ephraimmedeiros8181 Год назад

    Very nice video. Thanks . I think this is very important and in same line I have one question: Is it possible to build a script that read text lines (prompts) from a pre defined list (JSON) and send these prompts to chatGPT (or Davinci/GPT-3 . No problem if is the paid version) , and copy/save the answers to a txt file or json and pause for 2 minutes before go to the next prompt ? In this way instead chatting with chatGPT in front of screen, we would be able to go to buy groceries or swimm and when we come back we just check the answers and start work with the texts generated. If possible , you (or someone else) could produce a video teaching how to do it or if there already an example could you post link ? Example something like :
    - List of 10 topics (in Json or txt file ) about Biology
    - Prompt :
    Produce 3 Multiple choice questions about [topic 1] with 4 choices and provide the answers (and explain the right answer ?)
    and loop this to all list .
    I'm loving chatGPT to support educators but we are still spending long hours in front of screen "chatting". Could we automate this too ? I'm struggling to write a script to do it and your video will help. I will try to use some info but maybe its a good idea to produce a video too. Anyway ...best regards and keep doing your EXCELLENT videos !

  • @oumaimaelrhazal5649
    @oumaimaelrhazal5649 4 года назад

    Thank's for the awesome video, so Instargram have always the problem of API updates. It really can't work until now.

  • @danieldimitrov7067
    @danieldimitrov7067 4 года назад

    Would be good if you show your mistakes so we can learn from them, anyway your videos are awesome i am very exited to see that typebof content thank you, you are the best!

  • @raupeniemalssatt8193
    @raupeniemalssatt8193 4 года назад +2

    Could you set up a Raspberry Pi and run your automations with crontab or something like that?

    • @pai64
      @pai64 4 года назад

      Thats the same think you just changing the computer

  • @johnnylwebber
    @johnnylwebber 4 года назад +2

    Zapier is a way eaiser way to do this unless you like playing around with code :) nice vid tho, cheers

  • @himanshushukla6451
    @himanshushukla6451 4 года назад

    Interesting video 👍

  • @giovaniif
    @giovaniif 4 года назад

    Really nice video!
    A suggestion: wouldn't it be better if instead of downloading the video thumb, you just post the video link and let the twitter og:tags handle the rest?

  • @niaziglobal
    @niaziglobal 4 года назад +1

    Question: How to see the hidden Subscribers with using of youtube api

  • @pimbreugem3168
    @pimbreugem3168 4 года назад

    8.30 if u rename the title you program will read it as a new video. Maybe there is a RUclips api to get a certain video ID and title?

  • @0x007A
    @0x007A 4 года назад +1

    Instagram's (aka Facebook Borg) Graph API: developers.facebook.com/docs/instagram-api

  • @SoMadCoffee
    @SoMadCoffee 4 года назад

    For those who don't know programming or don't won't to write a program, use IFTTT.
    Spoiler alert: It was free, but from now on you have to pay.

  • @SG2024-z7k
    @SG2024-z7k 4 года назад

    You could use Selenium for Instagram. I know it's not via API, but should work. :-)

  • @affordcoder9403
    @affordcoder9403 3 года назад

    Good job

  • @alexc189
    @alexc189 4 года назад

    Nice video! i have a question, where you host the script to be able to work all the time?