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

Investigate translation with headless browsers for better js-based loading website support #169

Open
adomasven opened this issue Jun 18, 2024 · 1 comment

Comments

@adomasven
Copy link
Member

Translation solely via XHR is an issue on some translators (currently 70+ translators have test cases with defer: true), primarily because additional loading via JS happens on those websites (e.g. https://www.fao.org/documents/card/en?details=cc0461en)

  • We would need to mark translators that require running via a headless browser. Some only need to wait for JS on search pages, which is not important for TS.
  • A headless browser would be spun up via puppeteer for those translators and wait some set time before running translation.
  • An investigation into resource usage is required
  • An investigation into sandboxing cookies/localstorage is required between translation runs
  • An investigation into running on AWS lambda is required
@adomasven
Copy link
Member Author

Related zotero/zotero#4255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant