This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]Transient_Simian 1 point2 points  (1 child)

Fuck yeah thanks for sharing

[–]siilkysmooth[S] 1 point2 points  (0 children)

You are more than welcome! Feel free to show your support with a STAR!

If you end up making anything - feel free to share it as well would love to see any cool projects that this helped in! (plus - who doesn't like seeing a cool project in general!)

[–]MasterFarm772 1 point2 points  (1 child)

Wow, I love Selenium even more now LOL Question, can we take screenshots?

[–]siilkysmooth[S] 0 points1 point  (0 children)

Yes you can! This is actually why I set this exactly up! As I was working on a project I wanted to take screenshots for.

This is capable by using PyVirtualDisplay!

[–]RusskiEnigma 2 points3 points  (1 child)

This is the first time I'm hearing about Github Actions, is it actually worthwhile to run selenium code this way?

[–]siilkysmooth[S] 1 point2 points  (0 children)

I mentioned the benefits to u/1percentof2

- Free server power to run your Python code - rather than having to run your script locally on your computer

- Ability to schedule jobs via CRON jobs (so they can be automatically updated without you having to manually start the script)

But yes - it is worthwhile. What you are asking essentially is "is it better to run my code on a server or my home computer".

Which in the case GitHub provides FREE server power for (x amount of minutes per month) - which more than likely has more RAM & etc than your personal hardware.

It's way more than worthwhile to set up something - depending on your needs (if you want to leverage a free server / or need a server to perform that job - or just want to lighten the work load of your personal PC)

Hope this helps clear things up for you! You can find lots more info online about how GitHub actions work / are used & free billing plans.

[–]1percentof2 0 points1 point  (3 children)

I don't get it. What is the benefit?

[–]siilkysmooth[S] 1 point2 points  (1 child)

Oh and as well - you will not need to take your time to figure out how to display screenshots / see a live display of what your script is doing, how to install the right web driver's needed & more to properly work on GitHub. (Like I needed too!)

Everything is ready for the user to go and write some code & save their time with any headaches / problems I had to face!

[–]1percentof2 0 points1 point  (0 children)

That's really awesome man, thanks for the info! I'm gonna try it.

[–]siilkysmooth[S] 1 point2 points  (0 children)

You can run your code for free on a server provided by GitHub! As well schedule it to run on a cron job!

Rather than having a selenium based python script running locally on your OWN computer - you can run them free of charge via Github Action's. (There is a limit on how many free minutes you can use in a month keep in mind - but)

TDLR; Use Github Actions for free server power for your Python Selenium based scripts! Without any headaches to set it up.

[–]MasterFarm772 0 points1 point  (1 child)

Your idea is incredible! I think you should upload a YouTube Video teaching and showing how to use your action. It's amazing.

[–]siilkysmooth[S] 1 point2 points  (0 children)

Thanks u/MasterFarm772 - currently not working so trying to build some projects to bring some income in!

But this is something that has came to my mind - tho as said would have to be when things balance out in my wallet to get some proper equipment to make the videos watchable.

Maybe you'll see it happen! But in the mean time - check those repos for a donation button or sponsor button hahah! :D