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!
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
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.
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!
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. 👍🏼
@@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.
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.
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!
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!
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.
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!
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.
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
@@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 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.
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
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 🤐
Suggestions, RUclips Share on Twitter can simplify the job. Also Puppeteer is ideal for scrapping and automate web scraping without having to use Selenium.
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!
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!
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
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!:-)
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)
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
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!
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
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!!!
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.
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
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!
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 👍🏼
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 !
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!
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?
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!
Man, whenever you start a project, always Google " API". Works like a charm!
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
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
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
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.
Great job, Kalle!! “Never spend 6 minutes doing something by hand when you can spend 6 hours failing to automating it” 😆
That's the programmer wayyyy
Suggestion: You can use RUclips api instead of scraping
Haha omg, I didn’t even think to look for that
@@Hallden_ pytube is a very good library right now for python, ensure you use the latest version of it on github.
I was gonna say the same thing, that would be so much more convenient
RUclips api sucks in my opinion because it has quotas. I used it for fun and I got banned after some api calls 😂
@@miyazjee Rate limits, you mean?
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
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"
All devs life
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!
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. 👍🏼
Very nice comment. Very little content on this topic on the internet
Yes I have been thinking this to myself as well, if he close the terminal, the script launch.
@@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.
@@nicktomasi1649 i just want to be sure...did you mean "termux" or "tmux"?
he can also do it in nodejs with google api and use firebase functions
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.
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!
RUclips has an amazing api, probably one of the best I've seen from any large company or website.
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.
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!
İt will be equal after 72 days
Just a suggestion: IFTTT is made exactly for these tasks and they have a nice gui which could save you some time.
True, but it'll improve dev skills if we can do this in a hard way, a.k.a. coding.
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.
Iftt is nice!
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!
IFTTT's services are now limited since they launched a paid version!
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.
Such good fun writing these little automations! Love being a developer
No linux, and no vim. A regression!
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
@@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.
Anyone knows why he switched back?
@@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.
@@JulianaPassos I mean why he switched from Linux to Windows also from VIM to I guess sublime?
I'm currently learning python and these videos are just class. Keep it up 👍
Really cool idea and an example why coding can save time.
I was waiting for a video like this!
Good video Kalle! Make more videos about workflow automatization 😁
Cool video kalle , want more like this❤
please do more API implementation videos, btw I love your programming setup, and Desk.
perfect dude! keep do that python, js and linux! web scraping, python automation, web dev and linux stuff! keep do that!
Keep do that.......?
@@manishswami7512 It's really not that hard to understand what he was trying to say.
@@MrHelpingHand take it easy bro
@@manishswami7512 no u
Dude your doing awesome loving all the new videos you keep loading well done keep it up :)
A clean your room intro, genius.
This was great! I actually liked the struggles that you posted too, it makes it more realistic and relatable. Good job man!
This is exactly what I was looking for! You are genius!
Love you from Tunisia
Loving these daily videos 😍
Finally python automation thank you for listening to me that is the difference between any other RUclips channel
Apart from the youtube api you can get that info with a basic curl request
Where did the "Hacking WIFI passwords" video from yesterday go?
Been asking myself the same question☹
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
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 🤐
Cool video...and fair play for being honest about how it can take long for some parts as can relate to this 😀
Suggestions, RUclips Share on Twitter can simplify the job. Also Puppeteer is ideal for scrapping and automate web scraping without having to use Selenium.
I think videos SHOWING mistakes is really cool and relatable lol. Can help us all learn from your mistakes too !! haha
2:28 for people trying this now Instagram added the feature to create post with api 👍
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!
Oh. Just saw your pinned comment, which answers my point 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!
Just starting with python, good content!
You are an inspiration. Congrats
I didn’t realize just how much stuff could be done easier with python.
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
Brilliant!!!
Yow why this notif waking me up at 4AM hahaha love it
Love the new videos.
The old ones were a little better,but that's really good too.
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!:-)
Plss do this type of python videos daily
Windows: Well, well, well, look who's back
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)
awesome amazing love it sir
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💚
Where is hacking wifi video? I missed it :( Can we see it?
Something went wrong with this script
yup I couldn't see too😭
Please make Part-2 of Instagram post. BTW love your videos ❤ Love From INDIA 🙋♂️
You could use a crontab to schedule the program execution everyday 😃🤘
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
Test1, Test2, Test3 .....
No one will understand this, just the legends and kalle of course !! 😁✌
Nice one Kalle
Continue i love this video
For learning code its very good method.
But if you want to automate this like selenium. Use selenium chrome ide or macro recorder...
Got that quarantine cut I see 😂
Yo, I'm speechless. Now I know I can recreate my most successful videos on RUclips to automate posts on other social platforms
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!
That intro music is so underrated
If you are only going to be scrapping a homepage you should look into scrary.spider (for python).
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
golden. thanks for sharing bruh
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!!!
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.
You could use Cronjob to run your script every day for example. Great video by the way
Now i am going to make an automation script so that I am the first one to like Kalle's video on RUclips. 😎😉
Best tips for learning Python? (i know a liitle bit about HTML and CSS)
Start a flask project
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
Honestly, fastest way to learn basically everything need is to just read the tutorial on the python website
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
Try to solve some tasks from codewars.com
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 !!
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!
Hi Kalle, could you do a dynamic web scraping or Selenium tutorial please.
I cannot get the hang of it for some reason!
we need part 2 👍😯
RPA - UI path will take just 1 hour and can almost scrape every website with ease.
You could use beautifulsoup instead of selenium. Much easy on resources
Nice video, youtube also has an api to make things easier
That's cool!
For instagram you have to use pyautogui and beautifulsoup4 for automation because there is no any api.
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 👍🏼
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.
Programmes after spending 5 days to automate a 5 minute task * HACKERMAN
I just have a request:"Make a tutorial series on Pyqt".
Yay im early I love this channel
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 !
Thank's for the awesome video, so Instargram have always the problem of API updates. It really can't work until now.
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!
Could you set up a Raspberry Pi and run your automations with crontab or something like that?
Thats the same think you just changing the computer
Zapier is a way eaiser way to do this unless you like playing around with code :) nice vid tho, cheers
Interesting video 👍
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?
Question: How to see the hidden Subscribers with using of youtube api
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?
Instagram's (aka Facebook Borg) Graph API: developers.facebook.com/docs/instagram-api
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.
You could use Selenium for Instagram. I know it's not via API, but should work. :-)
Good job
Nice video! i have a question, where you host the script to be able to work all the time?