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 pull request has changes conflicting with the target branch.
  • index.js
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u glossary-v2:Androz2091-glossary-v2
git checkout Androz2091-glossary-v2

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout master
git merge --no-ff Androz2091-glossary-v2
git checkout Androz2091-glossary-v2
git rebase master
git checkout master
git merge --ff-only Androz2091-glossary-v2
git checkout Androz2091-glossary-v2
git rebase master
git checkout master
git merge --no-ff Androz2091-glossary-v2
git checkout master
git merge --squash Androz2091-glossary-v2
git checkout master
git merge --ff-only Androz2091-glossary-v2
git checkout master
git merge Androz2091-glossary-v2
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
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.