Auto_Chrome
A cross platform pyhton IDE implimenting selenium 4
This is an open-source project.
If you want to support this project or me, please check out my NFTs and maybe buy some, i accept most bids. https://opensea.io/collection/cryptoverse1 or Donate below: https://paypal.me/CloudMaking?locale.x=en_GB
Video instructions and Demo (updated video coming soon - subscribe to Youtube)
-----> https://youtu.be/510XSoaZ0LI <-----
Requirements
- Python3 and pip
- Chrome browser v.96+
- Download the Chromedriver and put in the chromedrivers folder (follow instructions + link in folder)
- for MacOS you might have to manually install the latest version of the chromedriver and place it in the "chromedrivers" folder (additionally you might have to add the chromedriver to your firewall exceptions) read notes below form a MacOS user fo rmore detials
- follow all the instructions below
INSTRUCTIONS
- Download and update Python and The Chrome browser (if you don’t have it already)
- Download and extract the project in your desired location (keep all files and folders that come with the repo in this folder)
- shift+Rigth click inside project folder and click "open powershell window here"
- To to Powershell or Terminal and run the following command "pip install selenium" for windows and "pip3 install selenium" for MacOS
- [For MacOS users only]: Download the latest version of Chromedriver, delete everything in the chromedriver folder provided with the script and put the New Chromedriver in that folder, please do not rename anything and again make your you are using the latest version of the chrome browser.
- Run the script (Auto_Chrome.py) by double clickiing it (for MAC right click and run in python launcher)
- Open a preset file inside the script (make sure to pick the right preset for you or make your own)
- Fill in the varible for your project uplaod properties, examples are provided (you can save for next time)
- Press the "Open Browser" button (download and login into the metamask extension and go to your collection on opensea)
- Run the script
PRESET BUILDER COMANDS (normal python code and syntax works)
https://www.youtube.com/watch?v=l3UgWmqL89o&t=1s
Video tutorial on how ot make your own presets:Find CSS and XPATH codes through the inspect window on chrome
all base selenium code also works fine (this just maks it so you dont need to setup anything)
- go_to(address, fail_message[optional])
- css_and_key(code, key, fail_message[optional])
- xpath_and_key(code, key, fail_message[optional])
- css_and_click(code, fail_message[optional])
- xpath_and_click(code, fail_message[optional])
- linktext_click(code, key, fail_message[optional])
- wait_for_xpath(code, fail_message[optional])
https://www.youtube.com/watch?v=tRNwTXeJ75U
Must watch video for understanding selenum and making your own automation bots :Important Notes please read before starting:
- Do not move anything in or out of the main script folder.
- (here is a link to a handy script which does that for you: https://github.com/FireMarshmallow/Easy-file-renamer)
- as far as know this only works with windows and MAC os
- you might get a confirmation sign request form metamask on the first uplaod, you can manually click it and the script will carry on, if you click and press "start" again
- if you get a [TypeError: can only concatenate str (not "re.Pattern") to str] on launch , use th escript without the syntax highlighting.
- if you get [chromedriver permission error] on macOS please manually download and place the chromedriver in the chromedrivers folder (delete the other chromedrivers in that folder) found here https://chromedriver.chromium.org/downloads (download the lastest version for MacOS)
Message for a MacOS user
You might need to remove the quarantine attribute from the chromedriver, I did this by issuing the following command in the Terminal: xattr -r -d com.apple.quarantine ~/Downloads/Auto_Chrome_2-main/chromedrivers/chromedriver
You might also need to add the chromedriver to the mac Firewall exception list like so:
System Preferences > Security & Privacy > (Unlock the padlock if necessary) Firewall options > click on the + icon and locate the chromedriver
If you have any questions or want to get in contact you can find me on instagram and twitter by searching @cloudmaking (feel free to DM).