https://github.com/aviksaikat/selenium-automator
A bot class template to make selenium bots in python
https://github.com/aviksaikat/selenium-automator
python3 selenium-python selenium-webdriver
Last synced: about 1 month ago
JSON representation
A bot class template to make selenium bots in python
- Host: GitHub
- URL: https://github.com/aviksaikat/selenium-automator
- Owner: Aviksaikat
- Created: 2023-10-01T19:22:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T19:29:03.000Z (over 2 years ago)
- Last Synced: 2025-12-01T17:28:11.375Z (7 months ago)
- Topics: python3, selenium-python, selenium-webdriver
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Selenium Automator
- This is a class tempalte for creating python selenium bots for downaloding images
# Usage
```py
def main():
username = os.environ["USERNAME"]
password = os.environ["PASSWORD"]
urls = ["https://google.com"]
driver_path = r"~/chromedriver"
path_to_save = (
r"~/SeleniumBotPython/media"
)
bot = SeleniumBot(username, password, driver_path, path_to_save)
driver = bot.setupDriver()
if driver:
print(f"{bot.green}[*]Driver setup successful{bot.reset}")
else:
print(f"{bot.red}[!]Driver setup unsuccessful{bot.reset}")
exit(-2)
# Let your imaginaton do the rest ;)
if __name__ == "__main__":
main()
```