Skip to content

Any way to speed up execution of a script?  #64

@futuremotiondev

Description

@futuremotiondev

I wrote a simple Clicknium script that downloads icons from Iconify. Here's the script:

from time import sleep
from clicknium import clicknium as cc, locator

def main():
    tab = cc.firefox.open("https://icon-sets.iconify.design/fluent-mdl2/")
    sleep(2)
    icons = cc.find_elements(locator.iconify.icon_sets.iconify_icon_selector)
    for icon in icons:
        icon.click()
        downloadBtn = cc.find_element(locator.iconify.icon_sets.download_svg_icon)
        downloadBtn.click()

if __name__ == "__main__":
    main()

It's working great, but I'd like to really turbocharge the process as much as possible. A few questions:

  1. Can I execute downloads in parallel?
  2. Is there any method to speed up the process of locating and clicking on an icon?
  3. Is there any method to speed up the process of clicking on the download button?

Any help greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions