Skip to content

Instantly share code, notes, and snippets.

@TheRealNoob
Created September 24, 2018 04:45
Show Gist options
  • Select an option

  • Save TheRealNoob/bb4ef857eac87907d78d34306622ff1c to your computer and use it in GitHub Desktop.

Select an option

Save TheRealNoob/bb4ef857eac87907d78d34306622ff1c to your computer and use it in GitHub Desktop.

Revisions

  1. TheRealNoob created this gist Sep 24, 2018.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    event is a custom object defined above

    buttons = re.findall(r"text='([-\w ]*)'", event.stringify(), re.MULTILINE)
    buttons = list(set(buttons))
    buttons.remove('View pokemon')
    for number in buttons:
    if number != " ":
    last_request = functools.partial(event.click, text=number)
    await event.click(text=number)
    return