Closed Grelo4ka closed 3 years ago
The bot must not have all the amazon.pl page titles in the fairgame.conf file. If you provide them, they can be filled in.
I don't see the error message in your post. As mentioned, it's probably related to missing localized terms.
If someone attaches and updated version of /config/fairgame.conf
with additional localization information, we can get it rolled back in to the codebase. This applies for amazon.pl or any other locales that we don't have the correct terms for.
{
"FAIRGAME": {
"profile_name": ".profile-amz"
},
"AMAZON": {
"SIGN_IN_TEXT": [
"Witamy, Zaloguj się",
],
"SIGN_IN_TITLES": [
"Amazon Zaloguj się",
],
"CAPTCHA_PAGE_TITLES": [
"Robot Check",
"Server Busy"
],
"HOME_PAGE_TITLES": [
**dont know ...**
],
"SHOPPING_CART_TITLES": [
"Amazon.pl Koszyk"
],
"CHECKOUT_TITLES": [
"Kup teraz"
],
"ORDER_COMPLETE_TITLES": [
"Amazon.pl Dziękujemy"
],
"BUSINESS_PO_TITLES": [
"Business order information"
],
"DOGGO_TITLES": [
"Sorry! Something went wrong!"
],
"SHIPPING_ONLY_IF": "FREE Shipping on orders over",
"TWOFA_TITLES": [
"Two-Step Verification",
"Verifica in due fasi"
],
"PRIME_TITLES": [
"Complete your Amazon Prime sign up"
],
"OUT_OF_STOCK": [
"Out of Stock - AmazonSmile Checkout"
],
"NO_SELLERS": [
"Currently, there are no sellers that can deliver this item to your location.",
"There are currently no listings for this search. Try a different refinement.",
"There are currently no listings for this search. Try a different refinement.",
"There are currently no listings for this product in . Try changing the condition type."
],
"FREE_SHIPPING": [
"DARMOWA DOSTAWA"
],
"ADDRESS_SELECT": [
"Select a delivery address",
"Ordine in preparazione",
"Select a shipping address"
]
}
}
so to confirm - the bot works for you with those included?
i testing,but when condition on price is ok - item dont add in basket .
get msg "no shipping nodes" in bat logs.
i 2 minutes i will send ss
that's a different issue - need screenshots
No shipping nodes means it cannot parse the shipping cost so it assumes it is 0.
it doesn't push that button. Send me the url please.
@devNostyle try using --checkshipping
and see if that fixes it. I think it thinks that has a shipping cost associated with it, so maybe it doesn't see it as a valid offer.
amazon. bat cmd /k pipenv run python app.py amazon --checkshipping hmm not work.
What does "not work" mean? what's the error message? show the terminal
2021-03-13 23:02:28,837|0.6.1.dev5|INFO|Found 1 offers for B08NW2X37Z. Evaluating offers...
2021-03-13 23:02:28,854|0.6.1.dev5|DEBUG|Found 1 shipping nodes.
2021-03-13 23:02:28,854|0.6.1.dev5|DEBUG|Empty div found after bottleDepositFee. Assuming zero shipping.
2021-03-13 23:02:28,854|0.6.1.dev5|DEBUG| Shipping Price: Price(amount=Decimal('0.00'), currency=None)
2021-03-13 23:02:28,864|0.6.1.dev5|DEBUG|'check_stock' returned False
2021-03-13 23:02:31,864|0.6.1.dev5|DEBUG|Calling check_stock(<stores.amazon.Amazon object at 0x000001F570778D00>, 'B08NW2X37Z', 330.0, 6800.0)
2021-03-13 23:02:32,924|0.6.1.dev5|DEBUG|Initial page title
2021-03-13 23:02:32,926|0.6.1.dev5|DEBUG| page url: https://www.amazon.pl/dp/B08NW2X37Z/#aod
2021-03-13 23:02:33,472|0.6.1.dev5|DEBUG|After footer page title Gigabyte GeForce RTX 3060 Ti GAMING OC karta graficzna 8 GB: Amazon.pl: Electronics
2021-03-13 23:02:33,475|0.6.1.dev5|DEBUG| page url: https://www.amazon.pl/dp/B08NW2X37Z/#aod
2021-03-13 23:02:33,496|0.6.1.dev5|DEBUG|Found a loading flyout div. Waiting for offers to load...
2021-03-13 23:02:34,012|0.6.1.dev5|DEBUG|After footer page title Gigabyte GeForce RTX 3060 Ti GAMING OC karta graficzna 8 GB: Amazon.pl: Electronics
2021-03-13 23:02:34,013|0.6.1.dev5|DEBUG| page url: https://www.amazon.pl/dp/B08NW2X37Z/#aod
2021-03-13 23:02:34,025|0.6.1.dev5|INFO|Found 1 offers for B08NW2X37Z. Evaluating offers...
2021-03-13 23:02:34,041|0.6.1.dev5|DEBUG|Found 1 shipping nodes.
2021-03-13 23:02:34,041|0.6.1.dev5|DEBUG|Empty div found after bottleDepositFee. Assuming zero shipping.
2021-03-13 23:02:34,041|0.6.1.dev5|DEBUG| Shipping Price: Price(amount=Decimal('0.00'), currency=None)
2021-03-13 23:02:34,050|0.6.1.dev5|DEBUG|'check_stock' returned False
Can you add the following to the amazon.py file, around line 804:
log.info(f"Item price is {price_float}")
And then try running again and show me the terminal output.
2021-03-13 23:12:33,491|0.6.1.dev5|DEBUG|Initial page title
2021-03-13 23:12:33,493|0.6.1.dev5|DEBUG| page url: https://www.amazon.pl/dp/B08NW2X37Z/#aod
2021-03-13 23:12:34,041|0.6.1.dev5|DEBUG|After footer page title Gigabyte GeForce RTX 3060 Ti GAMING OC karta graficzna 8 GB: Amazon.pl: Electronics
2021-03-13 23:12:34,045|0.6.1.dev5|DEBUG| page url: https://www.amazon.pl/dp/B08NW2X37Z/#aod
2021-03-13 23:12:34,064|0.6.1.dev5|DEBUG|Found a loading flyout div. Waiting for offers to load...
2021-03-13 23:12:34,576|0.6.1.dev5|DEBUG|After footer page title Gigabyte GeForce RTX 3060 Ti GAMING OC karta graficzna 8 GB: Amazon.pl: Electronics
2021-03-13 23:12:34,577|0.6.1.dev5|DEBUG| page url: https://www.amazon.pl/dp/B08NW2X37Z/#aod
2021-03-13 23:12:34,586|0.6.1.dev5|INFO|Found 1 offers for B08NW2X37Z. Evaluating offers...
2021-03-13 23:12:34,603|0.6.1.dev5|DEBUG|Found 1 shipping nodes.
2021-03-13 23:12:34,603|0.6.1.dev5|DEBUG|Empty div found after bottleDepositFee. Assuming zero shipping.
2021-03-13 23:12:34,603|0.6.1.dev5|DEBUG| Shipping Price: Price(amount=Decimal('0.00'), currency=None)
2021-03-13 23:12:34,612|0.6.1.dev5|INFO|Item price is 6
2021-03-13 23:12:34,613|0.6.1.dev5|DEBUG|'check_stock' returned False
2021-03-13 23:12:37,613|0.6.1.dev5|DEBUG|Calling check_stock(<stores.amazon.Amazon object at 0x000002DA44F76D60>, 'B08NW2X37Z', 330.0, 6800.0)
2021-03-13 23:12:38,621|0.6.1.dev5|DEBUG|Initial page title
2021-03-13 23:12:38,624|0.6.1.dev5|DEBUG| page url: https://www.amazon.pl/dp/B08NW2X37Z/#aod
2021-03-13 23:12:39,164|0.6.1.dev5|DEBUG|After footer page title Gigabyte GeForce RTX 3060 Ti GAMING OC karta graficzna 8 GB: Amazon.pl: Electronics
2021-03-13 23:12:39,166|0.6.1.dev5|DEBUG| page url: https://www.amazon.pl/dp/B08NW2X37Z/#aod
2021-03-13 23:12:39,185|0.6.1.dev5|DEBUG|Found a loading flyout div. Waiting for offers to load...
ok change min to 1 and going on ! But next problem comes. i send logs w8.
it's adding to basket but some other problems comes;
2021-03-13 23:17:27,952|0.6.1.dev5|INFO|Adding to cart
2021-03-13 23:17:27,957|0.6.1.dev5|INFO|Attempting Add To Cart with offer ID...
2021-03-13 23:17:28,947|0.6.1.dev5|INFO|Clicking button
2021-03-13 23:17:28,972|0.6.1.dev5|INFO|Button clicked
2021-03-13 23:17:30,420|0.6.1.dev5|DEBUG|'check_stock' returned True
2021-03-13 23:17:30,420|0.6.1.dev5|DEBUG|'run_asins' returned 'B08NW2X37Z'
2021-03-13 23:17:30,420|0.6.1.dev5|DEBUG|Calling navigate_pages(<stores.amazon.Amazon object at 0x0000021505756DC0>, False)
2021-03-13 23:17:30,422|0.6.1.dev5|DEBUG|Navigating page title: 'Amazon.pl: koszyk'
2021-03-13 23:17:30,422|0.6.1.dev5|DEBUG|title is: [Amazon.pl: koszyk]
2021-03-13 23:17:33,422|0.6.1.dev5|WARNING|FairGame is not sure what page it is on - will attempt to resolve.
2021-03-13 23:17:33,445|0.6.1.dev5|ERROR|'Amazon.pl: koszyk' is not a known page title. Please create issue indicating the title with a screenshot of page
2021-03-13 23:17:33,803|0.6.1.dev5|WARNING|30...
2021-03-13 23:17:34,804|0.6.1.dev5|WARNING|29...
2021-03-13 23:17:35,805|0.6.1.dev5|WARNING|28...
2021-03-13 23:17:36,805|0.6.1.dev5|WARNING|27...
2021-03-13 23:17:37,806|0.6.1.dev5|WARNING|26...
2021-03-13 23:17:38,806|0.6.1.dev5|WARNING|25...
2021-03-13 23:17:39,807|0.6.1.dev5|WARNING|24...
2021-03-13 23:17:40,807|0.6.1.dev5|WARNING|23...
2021-03-13 23:17:41,807|0.6.1.dev5|WARNING|22...
2021-03-13 23:17:42,808|0.6.1.dev5|WARNING|21...
2021-03-13 23:17:43,808|0.6.1.dev5|WARNING|20...
2021-03-13 23:17:44,810|0.6.1.dev5|WARNING|19...
2021-03-13 23:17:45,811|0.6.1.dev5|WARNING|18...
2021-03-13 23:17:46,812|0.6.1.dev5|WARNING|17...
2021-03-13 23:17:47,813|0.6.1.dev5|WARNING|16...
Did you add the page titles you gave me to your file? the k is lower case in that page title, not upper case like the one you gave me.
Yeap it's "Koszyk" on my file I think now it's not pushing next btn "Przejdź do kasy"
Well did you fix the k so it's lower case like the title in the terminal?
my faitgame.conf
"SHOPPING_CART_TITLES": [
"Amazon.com Shopping Cart",
"Amazon.ca Shopping Cart",
"Amazon.co.uk Shopping Basket",
"Amazon.de Basket",
"Amazon.de Einkaufswagen",
"AmazonSmile Einkaufswagen",
"Cesta de compra Amazon.es",
"Amazon.fr Panier",
"Carrello Amazon.it",
"AmazonSmile Shopping Cart",
"AmazonSmile Shopping Basket",
"Amazon.nl-winkelwagen",
"Amazon.com.tr Alışveriş Sepeti",
"Amazon.pl Koszyk"
idk why in terminal show koszyk not Koszyk
v5|ERROR|'Amazon.pl: koszyk' is not a known page title. Please create issue indicating the title with a screenshot of page
how fix this ?
I'm not sure how else to explain this to you: You wrote: "Amazon.pl Koszyk" The actual page title is: "Amazon.pl: koszyk"
Fix it.
omg sry - now works well !
Describe the bug Today Amazon launched amazon.pl; yet, fairgame crashes when trying to find the login page
To Reproduce Steps to reproduce the behavior:
python3.8 app.py amazon --test
)Expected behavior Logging in and checking the availability of given products
Screenshots
Desktop (please complete the following information):