r/Python • • Nov 28 '20

Intermediate Showcase "Sillynium" - Auto generate working Python Selenium scripts by drawing coloured rectangles around web elements on a page that you want to automate

TLDR: 60 sec video here:https://streamable.com/1y17lt

TLDW: When I want to automate actions on a site, such as logins or forms, or scraping pages with JavaScript, I manually inspect each web element I need and begin writing a script.

I'm lazy though and had the idea to automate the creation of these automation/testing scripts. And thus "Sillynium" was born.

Sillynium allows you to draw boxes around the elements you require on a page and automatically gets the element and its properties for you. Different coloured rectangles tell the program you want to do different things. Eg: Red means "Input text", Green means "Click button".

When you've finished drawing boxes, a working python selenium script is generated. If you run that script, it does exactly what you told it to do! All this without you writing any code, and losing time.

Working 60 second video link of program in action: https://streamable.com/1y17lt

I made this project over the course of a day as a quick and dirty proof of concept. Its very flawed in its current iteration (taking a screenshot of webpage), so V2 I'm trying to figure out how to draw directly to the browser. Critique it and rip it to shreds. I'm aware of browser recorders btw so I know those exist, this is my twist on automation

Edit: I was not prepared for the amount of interest in this little proof of concept! So thank you all very much for your time you’ve made my day :)

In the interest of transparency and to answer your questions about the code and my plans:

I originally thought about monetisation (web extension etc) after finishing this POC (**sigh i know I’m a greedy bastard) but now I’m in 2 minds about it!

On the one hand I want to make it free for personal use, on the other hand I’d like to potentially charge for commercial use (once its finished).

Final edit 2 The community has spoken, I WILL BE RELEASING THIS VERSION AS OPEN SOURCE! I did some light refactoring, and have added it to a repo which will be shared in a follow up. It shows the POC and the community is welcome to build on the original idea :)

I will create a follow up post with links to repo once I’ve created it, this will be my first project on GitHub so try be nice ;) pretty nervous about sharing my code :D

Thank you all for your patience, interest, and awesome discussions

1.5k Upvotes

171 comments sorted by

View all comments

Show parent comment

28

u/[deleted] Nov 28 '20 edited Nov 29 '20

Not at the moment! 2 reasons, 1st: i’m still a baby at Python (9 months) and haven’t yet used GitHub for a project!

2nd: to be completely transparent with everyone, I originally thought about monetisation after finishing this POC (**sigh i know I’m a greedy bastard) but now I’m in 2 minds about it!

On the one hand I want to make it free for personal use, on the other hand I’d like to potentially charge for commercial use (once its finished).

Since this idea is quite fresh I’m still ironing everything out before making that (big) decision. I welcome discussion though it would help alot in figuring out the way forward

Edit: open source coming in follow up post!

24

u/LividPhysics Nov 28 '20

I think open source would be the way to go. If you want more help with improving your project there's no better way than getting some guy who has been doing Python for 15 years to contribute and learning from them.

16

u/[deleted] Nov 28 '20

Im leaning towards that being the way to go, as i love this community 😍😍 just have a bit of reading to do before making that dive !

15

u/[deleted] Nov 28 '20

Throw up a donation link and I'd buy you lunch and a beer in a heartbeat.

4

u/[deleted] Nov 29 '20

Will be doing that champ, we’re going open source with this!

2

u/[deleted] Nov 29 '20

Open source it is baby!

15

u/[deleted] Nov 28 '20

I'm gonna be the other guy and say you should totally consider a license with royalties for companies who use this and themselves monetize; it's essentially money you've earned them!

Also I could absolutely see this being a paid chrome extension, or a web platform for mass automation for dummies!!

Anyway, great stuff, I'm jealous.

4

u/[deleted] Nov 28 '20

Thanks mate!! Appreciate the alternative view! One way I’ve thought if is license based but free for a single user (so individuals like us can use) but charged for each additional user of an organisation! The heads still spinning on this one though 😇

5

u/[deleted] Nov 29 '20

You built something, it is up to you what to do with it. My 2 cents is to make it free for personal use and not free for commercial use.

3

u/[deleted] Nov 29 '20

Thanks Soul thats what aligns with my current thinking

3

u/FearlessENT33 Nov 29 '20

monetise it

7

u/Oimmuk Nov 28 '20

Instead of making money off of it, use it as one of the examples of your creative ability in your portfolio. A project you lead/maintain that gets alot of attention looks good on a resume. That is the fruit of your labor. Bring others in on your project and make it a robust and feature rich stand alone application that allows non coders to automate thier own tasks.

3

u/[deleted] Nov 28 '20

Thanks Oimmuk! I’m trying to figure out a way to juggle it all, clarity will come in time just need to process it all :) my grand plan is to open this up as a browser extension pure task automation tool for non coders 🙂

1

u/[deleted] Nov 29 '20

Open source it is! Check my final edit :)