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

fix: avoid memory leaks in browsercontext #290

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Conversation

eikowagenknecht
Copy link
Owner

@eikowagenknecht eikowagenknecht commented Nov 2, 2023

Use a fresh BrowserContext for each scraping run to avoid memory leaks (logging data from Playwright accumulates over time in the BrowserContext).

Also saves RAM while no scraping is running.

@eikowagenknecht eikowagenknecht merged commit a96f1b2 into main Nov 2, 2023
3 checks passed
@eikowagenknecht eikowagenknecht deleted the browsercontext branch November 2, 2023 08:36
@eikowagenknecht eikowagenknecht restored the browsercontext branch November 2, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant