How sharmayash263/-web-to-pdf-automation-script works
This is a command-line web-to-PDF extraction script. The user supplies a series URL and chooses one issue, a range, or all issues; the script opens a persistent browser session, extracts and filters the series listing, visits each selected issue, captures and checks page images, compiles them into a PDF, and removes temporary images after success. The README also describes mirror handling and manual security-challenge resolution. The architecture is based on the single sampled source file; these stages are responsibilities within that script, not separate modules.
Main entry points: comic_B.py CLI workflow
Components 12
User and browser
- CLI workflow
comic_B.py - Persistent browser
comic_B.py
Issue extraction
- Issue listing
comic_B.py - Issue selection
comic_B.py - Challenge check
comic_B.py - Image capture
comic_B.py - Image retry check
comic_B.py
PDF output
- PDF compilation
comic_B.py - Temporary cleanup
comic_B.py
Other components
- User
- Reading site
- img2pdf
Connections 11
- User → CLI workflow: provides choices
comic_B.py - CLI workflow → Persistent browser: launches
comic_B.py - Persistent browser → Reading site: navigates
comic_B.py - CLI workflow → Issue listing: extracts links
comic_B.py - CLI workflow → Issue selection: filters issues
comic_B.py - CLI workflow → Challenge check: checks challenges
comic_B.py - CLI workflow → Image capture: captures pages
comic_B.py - CLI workflow → Image retry check: retries small images
comic_B.py - CLI workflow → PDF compilation: compiles images
comic_B.py - PDF compilation → img2pdf: converts images
comic_B.py - CLI workflow → Temporary cleanup: deletes images
comic_B.py