dgtlmoon / dgtlmoon/changedetection.io
[feature] Handle PDF files opened in new tab in playwright.
- Dominant language
- Python
- Stars
- 34.1k
- Forks
- 2k
- Avg merge
- 23h 38m
- Merged PRs (30d)
- 67
Description
**Version and OS**
latest docker
**Is your feature request related to a problem? Please describe.**
When attempting to create a playwright workflow for a site I want a statement from, for example my gas utility bill, what playwright wants to do when you click download statement is open a pdf in a new tab. The steps options have no way of handling that.
**Describe the solution you'd like**
I could see multiple paths for this, either add logic to handle opening a new tab, which I've seen playwright has the ability to do or switch the functionality to download instead of open in new tab. Then either give us the ability to send the pdf as a notification to something or send an image of the page, which if I remember correctly an option now.
My ideal workflow is I can have changedetection look at the statement, see if it's different from before, send that statement in some way to a system that I can then have paperless consume it automatically. Many ways to handle that, like straight to a saved folder that could be mounted in the container, email, rss, etc. I'd be happy to work around whatever you find easiest to develop.
**Describe the use-case and give concrete real-world examples**
I've seen people trying to find ways to automate downloading things like bank statements, credit card statements, utility bills, medical records, you name it for a long time. It's very difficult to handle a software that can do all those built for each system, but I think changedetection is incredibly close to letting us do it generically.
Contributor guide
Research direction
Start by tracing the Playwright workflow step options involved when a download opens a PDF in a new tab. Compare the possible behaviors described in the issue—handling the new tab or downloading the file—and inspect how existing notification or image outputs work. Done means a monitored PDF workflow has a defined, tested way to capture and deliver the resulting statement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100