Add glossary methods #4

Open
KaKi87 wants to merge 15 commits from Androz2091/deepl-scraper:glossary-v2 into master
Owner
No description provided.
KaKi87 added 1 commit 2021-02-18 17:02:31 +01:00
Androz2091 added 1 commit 2021-02-18 17:03:38 +01:00
First-time contributor
  • clearGlossary doesn't work. Actually it works in my browser (when I run the script manually), but it doesn't work using Puppeteer. I tried to run the browser with the headless mode disabled to debug but my puppeteer browser is constantly crashing with headless mode disabled I don't know why and it's not due to deepl-scraper but I can't debug by disabling the headless mode
* `clearGlossary` doesn't work. Actually it works in my browser (when I run the script manually), but it doesn't work using Puppeteer. I tried to run the browser with the headless mode disabled to debug but my puppeteer browser is constantly crashing with headless mode disabled *I don't know why and it's not due to deepl-scraper but I can't debug by disabling the headless mode*
Author
Owner
  • Please allow the user to set language parameters in lowercase
  • Please remove console calls
  • Please regroup all constant declarations that can be
  • Please don't use page.evaluate
    • Please replace document.querySelectorAll(selector) by await page.$$(selector)
    • Please replace element.textContent by await (await element.getProperty('textContent')).jsonValue()

Doing this could also help you fix clearGlossary.

I can't debug by disabling the headless mode

Can you elaborate more on this ?

Feel free to ask if you have more trouble with puppeteer.

- Please allow the user to set language parameters in lowercase - Please remove `console` calls - Please regroup all constant declarations that can be - Please don't use `page.evaluate` - Please replace `document.querySelectorAll(selector)` by `await page.$$(selector)` - Please replace `element.textContent` by `await (await element.getProperty('textContent')).jsonValue()` Doing this could also help you fix `clearGlossary`. > I can't debug by disabling the headless mode Can you elaborate more on this ? Feel free to ask if you have more trouble with puppeteer.
Androz2091 added 1 commit 2021-02-18 17:37:52 +01:00
Androz2091 added 1 commit 2021-02-18 17:38:25 +01:00
Androz2091 added 1 commit 2021-02-18 17:39:12 +01:00
Author
Owner

Please upate documentation as per ee988e5.

Please upate documentation as per ee988e5.
KaKi87 added 1 commit 2021-03-06 21:15:01 +01:00
Androz2091 added 10 commits 2021-03-18 17:13:54 +01:00
This repository is archived. You cannot comment on pull requests.
No reviewers
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: KaKi87/deepl-scraper#4
No description provided.