Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Cant create new ads #35

Open
jniggemann opened this issue Nov 6, 2021 · 12 comments
Open

Cant create new ads #35

jniggemann opened this issue Nov 6, 2021 · 12 comments

Comments

@jniggemann
Copy link

This is probably due to the shipping options that are default. My ads are all "PICKUP", but this is not set (or the code doesn't get there):
img


Traceback (most recent call last):
  File "/home/jn/bin/ebayKleinanzeigen/kleinanzeigen.py", line 564, in <module>
    fPosted = post_ad(driver, ad, True)
  File "/home/jn/bin/ebayKleinanzeigen/kleinanzeigen.py", line 317, in post_ad
    shipment_select.select_by_visible_text("Nur Abholung")
  File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/select.py", line 120, in select_by_visible_text
    self._setSelected(opt)
  File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/support/select.py", line 212, in _setSelected
    option.click()
  File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webelement.py", line 80, in click
    self._execute(Command.CLICK_ELEMENT)
  File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
    return self._parent.execute(command, params)
  File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.9/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable: Element is not currently visible and may not be manipulated
  (Session info: chrome=90.0.4430.212)
@DreckSoft
Copy link

Yes, pickup does not work anymore. Shipping is OK.

@jniggemann
Copy link
Author

Yes, pickup does not work anymore. Shipping is OK.

For me it's the other way round, pickup does work and shipping does not.

@zapp42
Copy link

zapp42 commented Nov 21, 2021

@Airwave1981
Copy link
Contributor

Airwave1981 commented Nov 22, 2021

0007-Make-PICKUP-shipping-type-work-again.txt

Thanks, but raises:

name 'shipment_select' is not defined

Think adding
select_element = driver.find_element_by_css_selector('select[id$=".versand_s"]')
shipment_select = Select(select_element)

after if (ad['shipping_type']) == 'SHIPPING':

is fixing this...

@kahironimashte
Copy link

How can I apply all those changes? Donwayo seems to be busy in real life for some time now ;-)

@DreckSoft
Copy link

I also lost track of all the changes. Is there any version or pull request out there, that completely fixes the issues. Meaning that deleting works, captcha is supported, pickup an shipping works and the update time and ID is properly written into the JSON.

@jniggemann
Copy link
Author

I'm using @Airwave1981's fork which works flawlessly for me when shipping = pickup.

@DreckSoft
Copy link

Unfortunately @Airwave1981 fork does ignore shipping type = PICKUP and sometimes even crash with SHIPPING.

Traceback (most recent call last):
File "/home/admin/Development/ebayKleinanzeigen/./kleinanzeigen.py", line 579, in
fPosted = post_ad(driver, ad, True)
File "/home/admin/Development/ebayKleinanzeigen/./kleinanzeigen.py", line 438, in post_ad
submit_button.click()
File "/usr/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "/usr/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "/usr/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
(Session info: chrome=96.0.4664.45)

@Airwave1981
Copy link
Contributor

Airwave1981 commented Dec 18, 2021

Unfortunately @Airwave1981 fork does ignore shipping type = PICKUP and sometimes even crash with SHIPPING.

Traceback (most recent call last): File "/home/admin/Development/ebayKleinanzeigen/./kleinanzeigen.py", line 579, in fPosted = post_ad(driver, ad, True) File "/home/admin/Development/ebayKleinanzeigen/./kleinanzeigen.py", line 438, in post_ad submit_button.click() File "/usr/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click self._execute(Command.CLICK_ELEMENT) File "/usr/lib/python3.9/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute return self._parent.execute(command, params) File "/usr/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/usr/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable (Session info: chrome=96.0.4664.45)

Anyone has a fix for that already, I can directly implement?
Thx

@DreckSoft
Copy link

I don't think so. I tried to research what the exact issue is but I didn't succeed. Strangely the crash with SHIPPING only happens on one ad with me. But PICKUP gets ignores with add ads. The original one always (?) crashes on PICKUP.

@kahironimashte
Copy link

I cloned the fork of @Airwave1981 and it works for the most part :-) All offers are set to shipping possible even if they are only for pickup. But it's working again, yay.

@Schmuuu
Copy link

Schmuuu commented Dec 29, 2021

Hi guys,
I just found and tried this python script and failed to create an Ad for PICKUP.
I noticed this issue and that there wasn't a fix yet (at least not mentioned here).
Trying to post my ad in any way I already implemented a few fixes; like these:

I came farther, but price type "FIXED" and PICKUP were still not selected and the ad creation failed.
I noticed price type is (now) a drop down and wasn't handled as such and for PICKUP the xpath changed.

So I made some code changes and got it working for me.

At least for PICKUP the ad was successfully created. For SHIPPING additional changes may be required (I haven't tested SHIPPING).

Hope it helps:
https://github.com/Schmuuu/ebayKleinanzeigen

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

6 participants