Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update amazon.py added exception handling when starting discord_presence. * - Basic global configuration functionality - Initializing global features in cli.py main() - Migrated Amazon strings to global configuration file - Introduced common package - Migrated to Version class for version information - Added configured Amazon shopping Domain to Amazon config printout - Trimmed console logging to allow more useful console space * Updates amazon configuration console output. Removed dash after log level in console logger * Blackd * --Updated logging format to include version. --Refactored Version to remove dependency on logger.py * --Added link to explain Amazon Smile * --Refactored Config class to GlobalConfig for namespacing * Reworked startup code to expose global variables after intialization. * Surrogate commit for DakkJaniels implementation of pathing for Chrome profile using running app's absolute file path. Solves --headless on at least Linux. * Correctly disabled sounds only instead of notifications altogether when a sound device isn't present. * Interim check-in of updates to platforms. Additional headings tagged and content reorganized a bit. * --Updated headless flag --Added headless FAQ --Added Raspberry Pi FAQ * -- Removed reference to older version of Python on Pi * -- Explicitly declared sel_exceptions.WebDriverException in cases where a general error has occured with the web driver. * -- Corrected previous commit to explicitly declared sel_exceptions.WebDriverException in cases where a general error has occured with the web driver. * -- Added missing dependencies * -- Explicitly declared sel_exceptions.WebDriverException in cases where a general error has occured with the web driver. * -- Corrected previous commit to explicitly declared sel_exceptions.WebDriverException in cases where a general error has occured with the web driver. * -- Added missing dependencies * Interim checkin for collaboration with other developers who can see this issue on their profiles. Known domains: # AMAZON_DOMAIN = "www.amazon.com.au" # AMAZON_DOMAIN = "www.amazon.com.br" AMAZON_DOMAIN = "www.amazon.ca" # NOT SUPPORTED AMAZON_DOMAIN = "www.amazon.cn" # AMAZON_DOMAIN = "www.amazon.fr" # AMAZON_DOMAIN = "www.amazon.de" # NOT SUPPORTED AMAZON_DOMAIN = "www.amazon.in" # AMAZON_DOMAIN = "www.amazon.it" # AMAZON_DOMAIN = "www.amazon.co.jp" # AMAZON_DOMAIN = "www.amazon.com.mx" # AMAZON_DOMAIN = "www.amazon.nl" # AMAZON_DOMAIN = "www.amazon.es" # AMAZON_DOMAIN = "www.amazon.co.uk" # AMAZON_DOMAIN = "www.amazon.com" # AMAZON_DOMAIN = "www.amazon.se" * Interim check-in of updates to platforms. Additional headings tagged and content reorganized a bit. * --Updated headless flag --Added headless FAQ --Added Raspberry Pi FAQ * -- Removed reference to older version of Python on Pi * -- Explicitly declared sel_exceptions.WebDriverException in cases where a general error has occured with the web driver. * -- Corrected previous commit to explicitly declared sel_exceptions.WebDriverException in cases where a general error has occured with the web driver. * -- Added FREE SHIPPING string collection to configuration * Interim commit with checks for both offer listing types (offer page and flyout). Logging found offers per page as an intermediate step to indicate what the xpath code finds in the source. Also using Selenium driver waits to determine that we have an offer node to parse. * Interim checkin with verbose logging on flyout and PDP page interactions. * Corrected offer_url from testing to correct offers url * Interim checkin with verbose logging for flyout page * added support for "email me" no stock PDP version updates to selectors for offers on offers page * Updated price parsing when in flyout mode * Extended shutdown time for items in cart error to 30 seconds. * -- Added support for pinned offers -- Added support for manual intervention of known select address pages * Updates from user 'antonioh501' on github to accommodate additional page titles on amazon.it and add additional sleeptime between 2FA page title checks * --Added command line option to purge browser profile (--clean-profile) --Added command line option to purge Amazon credentials --Refactored profile name to global option * --Added minimal check to see if the offers flyout was already opened before attempting to click the open offers link. * --Updated to handle the auto-flyout event on a redirect from offers page --Turned down logging --Tolerate slow loading flyout * --corrected logging typo * --Added two page titles to the Address Select collection --Fixed formatting of TWOFA_TITLES * --Forced wait for footer to load before scanning page for pricing --Upgraded to ChromeDriver = 88.0.4324.96 * --Updated version to distinguish between feature and mainline development * --Added the concept of Amazon Item Condition for determining if an item is used or new --Added additional parsing to pull out item condition from flyout * --Updated xpath for detecting offers for the scenario that the flyout opens automatically and there are no offers. * --Added the concept of Amazon Item Condition for determining if an item is used or new --Added additional parsing to pull out item condition from flyout * --Added --alt-offers option to force Fairgame to search the product page flyout instead of traversing the offers page redirect. * add copyright and license info (#478) * add copyright and license info * copyright/license: moved some things around moved startup text to app.py * license check added license check and license file hash * --Updated version to reflect Copyright and License changes * Update README.md * --Updated to include both Unix and Windows line feed hashes for the License * --Hot fix to quickly skip doggo page if we detect it * --Hot fix to quickly skip doggo page if we detect it * Update cli.py fixed headless help text * -- Updated to prefer PDP offers page. --alt-offers now attempts to go to the deprecated offer listing page -- Updated to force flyout on page load by default -- Updated logging to be quieter. -- Defaulted to fast page scanning. Can lead to false reports that the PDP is the only page that an offer. --slow-mode to correct for that * Update amazon.py fixed headless prompt * -- Removed duplicate headless config option in show_config() * slowmode by default turned off page strategy none until logic is fixed * Update from #484 * Forced wait for page to fully load before determining all offers link availability. * --Corrected help text on --alt-offers flag to represent defaulting to PDP * blackd * --Updated version to account for development and find-offers co-existing as dev3. * edit captcha xpath to be more universal checks for the actual captcha url in the form vs an element whose id may change * not dependent on amazon.com domain * merge duplicate captcha solving code * handle captcha appearing during check_stock and added captcha title "Server Busy" to fairgame.conf * Update README.md * --added emtpy cart check * Update readme with new cheat-sheet Update readme with new cheat-sheet * --Initial implementation of offerID add to cart mechanics inspired by Dakk's proto-type method * --Redirect user to the cart page if they have existing items before exiting * --Incremented version for tracking purposes * --Updated Cheatsheet link * --Hotfix for missing place order button selector (new selector?) * --added emtpy cart check * --Initial implementation of offerID add to cart mechanics inspired by Dakk's proto-type method * --Redirect user to the cart page if they have existing items before exiting * --Incremented version for tracking purposes * --Added multi-domain support for ATC url * --Updated version to 0.6.0.dev7 * --Updated "Continue" selector to be non-English compatible * --Updated version to 0.6.0.dev8 * --Additional logging for supporting users --Corrected shopping cart title for Italy * --Updated to version 0.6.0.dev9 * --Added support for empty shipping div that was causing a crash --Added support for non-Prime member price parsing for shipping. Untested. * --Updated version to 0.6.0.dev10 * Update version.py updated version number Co-authored-by: unapproachable <[email protected]> Co-authored-by: unapproachable <[email protected]> Co-authored-by: Crasoum <[email protected]> Co-authored-by: Cole Gerdemann <[email protected]>
- Loading branch information