Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

table step takes a long time - TagUI mimics human speed by design, try this hack #815

Closed
yewkay opened this issue Jun 6, 2020 · 1 comment
Labels

Comments

@yewkay
Copy link

yewkay commented Jun 6, 2020

the table to csv function seem to take a long time even for small tables I tested with wiki

ubuntu@ubuntu:~/tagui/flows$ time tagui testtable.tag -h

START - automation started - Sat Jun 06 2020 09:21:52 GMT+0800 (+08)
https://en.wikipedia.org/wiki/V%C3%ADctor_Rivero - Víctor Rivero - Wikipedia

table /html/body/div[3]/div[3]/div[4]/div/table to wiki.csv

https://en.wikipedia.org/wiki/V%C3%ADctor_Rivero - Víctor Rivero - Wikipedia
FINISH - automation finished - 23.5s


real	0m36.550s
user	0m22.880s
sys	0m4.502s

It takes just over half a minute for tagui to get a small table, bulk of the time went into the table command.

Is there any other way to get the tables into CSV faster?

System specs if needed.
I'm running TagUI 6 on Ubuntu 20.04 LTS server in a VM with 4 cores (1.6GHz) and 4Gb ram

@kensoh
Copy link
Member

kensoh commented Nov 24, 2020

Hi @yewkay sorry I was away the past few months - tebelorg/RPA-Python#144

Yes the table step is designed to be slow to mimic human user speed. It actually reads the table values cell by cell.

Here are some ideas to speed up data extraction -

  1. Try using this hack to make TagUI run at superhuman speed. Not recommended because websites are not tested and designed for super-human speed users and will likely lead to errors in automation -
    RPA Challenge - code design and optimisation to run 20-30X faster tebelorg/RPA-Python#120 (comment)

  2. Consider using other tools for datascraping which are designed to be fast and not TagUI which is designed to mimic human user speed for RPA purpose and maximise robustness of the automation

  3. Perhaps using the visual automation method and keyboard step to select the table to copy out and then paste using clipboard() function or using visual automation to open up Excel to paste the copied data

Closing the issue for now, but lemme know if you have any questions

@kensoh kensoh closed this as completed Nov 24, 2020
@kensoh kensoh added the query label Nov 24, 2020
@kensoh kensoh changed the title tagui table function takes a long time tagui table function takes a long time - TagUI mimics human user speed by design, try this hack Nov 24, 2020
@kensoh kensoh changed the title tagui table function takes a long time - TagUI mimics human user speed by design, try this hack tagui table function takes a long time - TagUI mimics human speed by design, try this hack Nov 24, 2020
@kensoh kensoh changed the title tagui table function takes a long time - TagUI mimics human speed by design, try this hack table step takes a long time - TagUI mimics human speed by design, try this hack Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants