r/Python • • Apr 11 '20

I Made This I made a script to automatically log into my zoom meetings and record it.

1.1k Upvotes

142 comments sorted by

40

u/bigchillRK Apr 11 '20

10

u/justingolden21 Apr 11 '20

EDIT: formating was messed up. Here's the link to the file: https://github.com/BigchillRK/Zoom-Meeting-and-Recording/blob/master/zoom_record_template1.py

Requires pyautogui, works in Windows, and requires the image in adjacent location.

Well done OP, I'll have to mess with this a bit

7

u/bigchillRK Apr 11 '20

hey thanks a lot for the kind words really appreciated, this is my first proper project and first time using github so really happy this has worked well.

2

u/justingolden21 Apr 11 '20

No problem, nice script. I just skimmed it briefly tbh, but looked good to me. Obviously it worked for you. I was messing with pyautogui a bit before, but kinda gave up when I couldn't figure how to package it with pytoexe or whatever it's called

As you keep coding and posting on GitHub, be sure to keep your code clean, readable, and organized like you are now. Don't abandon that

→ More replies (1)

7

u/KoinuKoji Apr 11 '20

As many comments as there is code... I think I may have fell in love. 😍 This is awesome great job!!!

3

u/bigchillRK Apr 11 '20

Aww thanks hahah appreciate it

3

u/psharpep Apr 11 '20

This code is really clean and well-commented, especially for your first project - well done and thanks for your work!

One tip - you may consider adding the instructions in the .pdf to README.md (using Markdown syntax), which will let users more easily view the instructions on your project's GitHub page!

Again, nice job! :)

1

u/bigchillRK Apr 12 '20

Hey thanks a lot, yea I've been told a lot in undergrad to comment code on my matlab scripts so I'm trying to hold good practice. Will do on the readme.md instead of pdf I'm still trying to learn how it works thanks again

→ More replies (1)

367

u/Wishy-Thinking Apr 11 '20

I’ve also made a script to automatically log into your Zoom meetings and record them.

70

u/bigchillRK Apr 11 '20

That's great, would love to take a look if you're keen to share

101

u/Elocai Apr 11 '20

Already up on pornhub, check

"Guy furiosly masturbates to midget porn"

64

u/bigchillRK Apr 11 '20

hahahahah shit i only just realised what wishy actually meant i've been played

8

u/Wishy-Thinking Apr 11 '20

Hahaha. Yeah, sorry for hijacking your thread...

Me:

[Posts stupid comment disparaging Zoom security at 1 AM]

[Checks Reddit the next day]

O_o Midget porn??

→ More replies (1)
→ More replies (1)

33

u/[deleted] Apr 11 '20

For real though, you should all stop using Zoom asap. https://www.tomsguide.com/uk/news/zoom-security-privacy-woes

Jitsi is free and works pretty well, all in browser. Not as many fancy options but it depends what you want to use it for.

13

u/bigchillRK Apr 11 '20

I've haven't heard many good things about zoom in terms of privacy yea hopefully universities also adopt more secure platforms

→ More replies (9)
→ More replies (6)

9

u/Luffydude Apr 11 '20

Zoom privacy issues are a meme at this point

→ More replies (1)

58

u/[deleted] Apr 11 '20

Please remove that sticker on the top left corner of your screen. It really upsets me!

12

u/bigchillRK Apr 11 '20

ideally i'd like to remove the whole monitor and get a new one, this one is so old and dusty hahah

4

u/[deleted] Apr 11 '20

Lol. I'm glad you got my joke! Good job on the tool btw 👍

4

u/bigchillRK Apr 11 '20

thanks a lot, appreciate it

→ More replies (2)

20

u/zaheeryousuf Apr 11 '20

Great, Nowadays there are many uses for this. Good Work.

8

u/bigchillRK Apr 11 '20

Thanks a lot, much appreciated

30

u/Thrasherop Apr 11 '20

Awesome code on the GitHub. I love pyautogui. It's probably one of the modules I use the most, second only to time. I do have two tips I would recommend

  1. you could use pyautogui.LocateOnScreen() to find the join button instead of having to manually put in cords. This would make it more robust, especially for others who wanted to download it, but for just you what you've done is totally fine. One downside is that you would need an image file inside the directory that had a cropped screen shot of the join button.

  2. this is purely a personal preference that I have started to us. Instead of typing pyautogui every time, I import like so "import pyautogui as py". That way I only need to put py.moveTo() instead of having to type that long "pyautogui" every time. I also do "from time import sleep" so that I can just do "sleep(5)". Makes it a bit more readable in my opinion but again, totally personal preference. I always only use sleep with time so I find that best.

Overall, very cool code.

16

u/bigchillRK Apr 11 '20

That's so good thanks so much for your insight. Yes the locate on screen method would be so much better than the method I have right now and yes ofc I completely forgot that I could import as py and stuff. I'm studying mech eng and my coding background is very limited and I'm just learning in my spare time. Definitely am gonna try to implement the changes you suggested, thanks so much for taking the time to help me out

0

u/Thrasherop Apr 11 '20

No problem at all! Also if I were doing it, I would put the locateOnScreen inside a function just to make it cleaner. But that may be weird idk lol. I was just taught to make a hierarchy in my code lol. Idek if that's proper 😂. It makes it easier to read nonetheless

2

u/bigchillRK Apr 11 '20

fair enough my code could definitely be a bit better on the eyes hahah

→ More replies (1)

10

u/way22 Apr 11 '20

That's really good advice!

Just one tip from a Dev perspective. If you go for an abbreviation don't choose a term like 'py' which could mean any number of things. Go for something intuitive and linked to the package you are using. In this case I'd advice for pag (PyAutoGuy, you see where I'm coming from? :D)

Additionaly, use abbreviations only if you use them alot. Autocomplete from IDEs invalidate the argument that you have to type the same name alot :) in terms of keystrokes this won't make much of a difference

3

u/bigchillRK Apr 11 '20

Yea that's definitely true, I've been using Visual studio code and it's so easy I just type the first few letters and the auto complete does the rest

4

u/UEMcGill Apr 11 '20

import pyautogui as pawg

I think you missed an opportunity there.

3

u/bigchillRK Apr 11 '20

I'm changing this first thing tomorrow morning

→ More replies (1)

2

u/epicureanfarmer Apr 11 '20

Thanks for the LocateOnScreen() tip, didn't know about it.

→ More replies (6)

6

u/bigchillRK Apr 11 '20

I used windows task scheduler to wake my pc to run the python script. The reason it takes a while to start up is that the pc wakes before the scheduled time to make sure the it's ready to run the task. Have not made a git hub rep yet, if people are keen I'll set one up.

1

u/[deleted] Apr 11 '20

Please share the code! Would love to take a look

6

u/bigchillRK Apr 11 '20

i've made a github rep, thanks for taking a look: https://github.com/BigchillRK/Zoom-Meeting-and-Recording

1

u/bigchillRK Apr 11 '20

Will do, give me some time to set it up

7

u/apy14 Apr 11 '20

Idk why schools/universities all over the globe are using zoom app.

1

u/bigchillRK Apr 11 '20

yea no idea how it became so popular

4

u/scientz Apr 11 '20

Because it's easy to use and has free offerings. Alternatives are all targeted at enterprises and not directly end users, thus making the usability and economics much different.

→ More replies (1)

4

u/satssehgal Apr 11 '20

Most have now switched to google Classrooms. My kids school did

→ More replies (1)
→ More replies (2)

3

u/NotzoCoolKID Apr 11 '20

Is able to write a script to login, join the zoom meeting and record it.
> Records his screen with his phone.

Any way nice script!

5

u/bigchillRK Apr 11 '20

Hahaha I wanted to show that the pc could wake from sleep to run the script which is the main advantage bc no one wants to wake up at like 8am to run a script, thanks for a lot for the compliment!! Appreciate it

2

u/[deleted] Apr 11 '20

Hey just as a feedback thing as I'm no pro either but i think people would love if the room id was as a cmd line arg

On a whole it's great

1

u/bigchillRK Apr 11 '20

Yep could definitely also do that, it would stumble a bit on the automation though I feel as the idea for this is that it runs automatically while I'm fast asleep in the morning im not keen on entering key strokes.

2

u/un_known__ Apr 11 '20

Bruhhh even I finished doing the same may I know how you started the script automatically?

2

u/bigchillRK Apr 11 '20

Windows task scheduler is your friend! If you have a look at the read me I've put up on GitHub there's a good yt link on how to do it plus a few more details

2

u/un_known__ Apr 11 '20

You are a good man, thank you

1

u/bigchillRK Apr 11 '20

Happy to help

2

u/[deleted] Apr 11 '20

Much needed!

1

u/bigchillRK Apr 11 '20

Glad I could help

2

u/Fried_Cheesee Apr 11 '20 edited Apr 11 '20

I only wanted the join part, so i nuked everything after the 'Recording meeting using Windows Game Bar'.` It worked for the first time when i didn't remove it, now it just opens zoom and doesn't click the join button. If i click it, it enters the zoom id and and then I have to put password manually. Nice script, but could be improved a lot imo

edit: Resovled some dumb things and it just needs to enter the password automatically and its perfect for me

2

u/bigchillRK Apr 11 '20

Hey im glad it helped you out thanks for the feedback, yep my code is definitely not the most efficient for sure bc of my limited background, i just put together what worked. For the password entering, if you add another line of pyautogui.write('password') after the enter id line it should work. I'll update my code sometime soon to implement this.

2

u/Fried_Cheesee Apr 11 '20

Yeah I mean I did add that line, was just saying whenever you update it so that you don't forget :D

2

u/bigchillRK Apr 11 '20

yep i'll make sure of it, thanks :)

2

u/[deleted] Apr 11 '20

Where can I get the code for my it

1

u/bigchillRK Apr 11 '20

i've put the github link on a comment, https://github.com/BigchillRK/Zoom-Meeting-and-Recording here you go. hope it helps

2

u/Advanced_Wolverine Apr 11 '20

I have been using obs with virtual cam plugin so I can play a video of me sitting and paying attention to the class. I can't wait to modify your code to support this! anyways awesome code!

1

u/bigchillRK Apr 11 '20

Hahaha that's the spirit!

2

u/[deleted] Apr 11 '20

Hey keyboard brother! We have the same thing and I am loving it!

1

u/bigchillRK Apr 11 '20

Cooler master devastator 3 right? It's actually a really decent combo for a budget price

→ More replies (1)

2

u/mubarizsaeed Apr 11 '20

Man one day I’m going to learn python and do this

1

u/bigchillRK Apr 11 '20

Hey it's definitely doable trust me I was a complete beginner just a couple of months ago

2

u/william_whithersonly Apr 11 '20

I have that same keyboard and its a fucking dust magnet. Like the dust is embedded in it. No amount of cleaning helps. Would not get again.

2

u/bigchillRK Apr 12 '20

I've given up, I'm just saving enough so I can get another one so I can get rid of this hahah

→ More replies (1)

2

u/daved229 Apr 11 '20

Can you write one that logs in, makes it look like I am there and responds “uh huh” a lot and then says”ok,talk to you tomorrow”? Asking for a friend......

1

u/bigchillRK Apr 12 '20

Hahahaha it's in the realms of possibility

2

u/GickRick Apr 11 '20

Awesome, how are you handling events like clicking?

1

u/bigchillRK Apr 12 '20

It's all done by the module called pyautogui, if you want a more in-depth explanation, Id take a look at the documentation for the module. Basically it looks to find where to click and then simulates a click

2

u/251pancakes Apr 11 '20

Really cool! Ctypes?

2

u/bigchillRK Apr 12 '20

I'm not sure what ctypes is sorry, could you explain?

→ More replies (1)

2

u/Motolover57 Apr 11 '20

Looks cool, but does it work with multiple invite links (for different classes) and if so how can you set them up?

2

u/bigchillRK Apr 12 '20

Hey this is a great question, you can definitely do that! So the script file is basically a template for one meeting. The best way to set this up for multiple meetings is to create copies of the template, change the meeting id and so on and create separate tasks in Windows task scheduler to open up the different scripts at the different times you want. However if you have 2 classes at the same time this won't work unfortunately :(

1

u/Motolover57 Apr 12 '20

Oh wow, thanks for the answer it helped out a lot.

2

u/bigchillRK Apr 12 '20

Happy to help! Good luck

2

u/Rorixrebel Apr 11 '20

The NSA approves.

1

u/bigchillRK Apr 12 '20

I'm surely on their watchlist

2

u/69shaolin69 Apr 11 '20

Pyautogui? Looks nice

1

u/bigchillRK Apr 12 '20

Yep has worked well so far

2

u/_370HSSV_ Apr 11 '20

pypy yourscript.py

Ahhh great, now zoom can compromise my privacy but it's automated.

2

u/bigchillRK Apr 12 '20

Now they can compromise my privacy while I'm fast asleep hahah

2

u/xjosx Apr 11 '20 edited Apr 11 '20

Nice. I'm going give that PyAutoGUI library a try.

1

u/bigchillRK Apr 12 '20

It's very intuitive to pick up the basics! Good luck!

1

u/haruishi Apr 11 '20

I wonder you can make this through the use of their api (https://marketplace.zoom.us/docs/guides/getting-started/app-types)

1

u/bigchillRK Apr 11 '20

ohh i've not looked into this, i'm sure its definitely possible to build something more robust with that

1

u/Pegaz7 Apr 11 '20

Uninstall zoom soon as possible! Its security risk to you and your firm

1

u/bigchillRK Apr 12 '20

Unfortunately I'm not available to do that as all my university lecturers have adopted zoom if I uninstall I will fall behind :(

1

u/Pegaz7 Apr 14 '20

Bro. Just happen new think with zoom, and sned this to your university https://www.instagram.com/p/B-9D6Z0AXwV/?igshid=95qmdbtzaatj

2

u/slimykid4685 Apr 11 '20

this is cool! thanks for sharing, will definitely check out your github

0

u/bhishan1 Apr 11 '20

Will be helpful if u share it on gh.

2

u/bigchillRK Apr 11 '20

Yep will do, I'll put it up soon

1

u/G33K_FISH Apr 11 '20

Useless script, Zoom is going to publish all that info anyways

0

u/[deleted] Apr 11 '20

ZOOM IS UNSECURE!

-2

u/CMack1978 Apr 11 '20

Please remove the marketing stickers off of your monitor. Please.

5

u/bigchillRK Apr 11 '20

its been there so long now feels weird to get rid of it

2

u/CMack1978 Apr 11 '20

but it might feel goooood!

2

u/simplysharky Apr 11 '20

It's his sticker, he can leave it stuck to his monitor for 50 years if he wants. Why there is always somebody giving a shit about stickers and plastic wrap on stuff they don't own is beyond me.

→ More replies (1)

0

u/[deleted] Apr 11 '20

[deleted]

2

u/bigchillRK Apr 11 '20

its such a fantastic game honestly from the story to the soundtrack and everything in between its just beautiful

0

u/[deleted] Apr 19 '20

[deleted]

1

u/bigchillRK Apr 20 '20

Is the png in the same directory as the script? Does the command line say anything about any errors?

1

u/[deleted] Apr 11 '20

[removed] — view removed comment

1

u/AutoModerator Apr 11 '20

Hi there, from the /r/Python mods.

We have removed this post as it is not suited to the /r/Python subreddit proper, however it should be very appropriate for our sister subreddit /r/LearnPython or for the r/Python discord: https://discord.gg/python.

The reason for the removal is that /r/Python is dedicated to discussion of Python news, projects, uses and debates. It is not designed to act as Q&A or FAQ board. The regular community is not a fan of "how do I..." questions, so you will not get the best responses over here.

On /r/LearnPython the community and the r/Python discord are actively expecting questions and are looking to help. You can expect far more understanding, encouraging and insightful responses over there. No matter what level of question you have, if you are looking for help with Python, you should get good answers. Make sure to check out the rules for both places.

Warm regards, and best of luck with your Pythoneering!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.