Linux support, Firefox option, A12/A13 device mode - #5
Open
kaffeindecaf wants to merge 1 commit into
Open
Conversation
- Notes app AppleScript replaced with a plain text file export (works everywhere, not just macOS) - chromedriver autodiscovery now also checks Linux paths, error messages tell you what to install on both platforms - user-agent swapped for a generic Linux string - README rewritten with real Linux install instructions (apt/yum) - new --a12-a13 flag extends the iOS ceiling to 26.0.1 for XS/XR and iPhone 11 series (A12/A13 chips), mirrors the existing --legacy flow - --browser firefox picks Firefox + geckodriver instead of Chrome; webdriver-manager downloads the driver on first run, same as before - interactive mode asks which browser to use
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Got the script running properly on Linux and threw in a couple of new modes while I was in there.
Linux
osascriptto talk to the Notes app, which just dies on Linux. It now writes a plain text file tonotes/with the same grouped layout. No behavior change on macOS beyond that./usr/bin/chromedriverand/usr/local/bin/chromedriver(the old code only looked at Homebrew paths), and the failure message tells you what to install per-platform.apt install tesseract-ocr) and Fedora/CentOS (yum install tesseract), plus Linux driver setup.New flags
--a12-a13— same idea as--legacybut for iPhone XS/XR and iPhone 11 series (A12/A13 chips): extends the iOS ceiling to 26.0.1 for those devices only. iPhone 12+ still limited to the 16.x/17.x jailbreakable range.--browser firefox— uses Firefox + geckodriver instead of Chrome. geckodriver is auto-fetched by webdriver-manager on first run, just like chromedriver. Interactive mode also asks which browser you want.Verified
Ran a full headless scrape on Linux with Firefox (
--browser firefox --no-ocr): 134 unique eBay listings, JSON export works, results sorted by device then price as before.Screenshot / output sample