Comments (10)
It is also unclear how to click checkboxes, for example in Cars autos.abs_b
from kleinanzeigen-bot.
I agree the documentation could be improved.
I get an error when I want to insert an ad in the category Auto, Rad & Boot/Fahrräder & Zubehör/Zubehör/Rennräder
Category -> (Auto, Rad & Boot/Fahrräder & Zubehör/Zubehör)
Special Attribute -> Rennräder
The variables in my .yaml ad-file look like:
category: 210/217/zubehoer
special_attributes: {"fahrraeder.type_s": "rennrad"}
The inspector says I'm using the correct id's and values for the special_attributes
and when I run the script the category
and special_attributes
actually get inserted.
But then the script stops and prompts this this error message:
File "~\kleinanzeigen-bot\kleinanzeigen_bot\__init__.py", line 430, in publish_ad
self.web_input(By.ID, special_property['key'], special_property['value'])
TypeError: string indices must be integers
←[0m
Is my syntax for the special_attributes variable in the yaml file correct
-> special_attributes: {"fahrraeder.type_s": "rennrad"}
?
I just assumed it's a dict.
Thanks in advance!
from kleinanzeigen-bot.
@chrwn It looks like you are using a too old version of the bot
from kleinanzeigen-bot.
I'm using Installation from source and Python 3.10.2 and the CLI. I cloned the newest repo.
pdm run app version prints 0.1.dev72+gc62528f
I'm not sure if this is the newest version though. I can't see a changelog or versioning here.
from kleinanzeigen-bot.
This code self.web_input(By.ID, special_property['key'], special_property['value'])
from your error message does not exist in then main branch anymore. So something seems off.
When I check the version I get:
> pdm run app version
Running <task app>: ['python', '-m', 'kleinanzeigen_bot', 'version']
0.1.dev106+g407659a.d20220327
You can try to run:
$ git pull
$ pdm sync
from kleinanzeigen-bot.
Thanks for the hint. I already did git pull
(on the main
branch) but not pdm sync
.
After running both. I get the new version:
pdm run app version
Running <task app>: ['python', '-m', 'kleinanzeigen_bot', 'version']
0.1.dev113+g8b9169d.d20220406
I still run into the same problem. I appreciate your help. For now, I think I'll try a different method from installation .
Maybe you can verify that the syntax for the special_attributes
is correct so that the issue can be closed.
from kleinanzeigen-bot.
Can you give this a try:
git fetch
git reset origin/main --hard
from kleinanzeigen-bot.
I tried:
> git fetch
> git reset origin/main --hard
> pdm sync
> pdm run app version
Running <task app>: ['python', '-m', 'kleinanzeigen_bot', 'version']
0.1.dev113+g8b9169d
and publishing works now, thanks!
from kleinanzeigen-bot.
It is also unclear how to click checkboxes, for example in Cars autos.abs_b
Someone knows how to use checkboxes?
from kleinanzeigen-bot.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If the issue is still valid, please add a respective comment to prevent this issue from being closed automatically. Thank you for your contributions.
from kleinanzeigen-bot.
Related Issues (20)
- ValueError: There is no such driver by url […] LATEST_RELEASE_116 HOT 8
- SSL: CERTIFICATE_VERIFY_FAILED HOT 8
- Chrome does not start, when a profil is used HOT 2
- @id='micro-frontend-price-type' or @id='priceType']' not found or not clickable; HOT 1
- Add easy multi-path in `config.yaml` via `ad_files` HOT 2
- No support for some article that have mandatory fields in `ad.yaml` HOT 1
- Web-element `buy-now-toggle` not found
- InvalidElementStateException: Message: invalid element state HOT 3
- Name is now readonly
- New anti-bot "feature" HOT 48
- Price type is not always available
- Feature: Reconnect on captcha when publishing
- Chromedriver not found HOT 3
- Another `SSL: CERTIFICATE_VERIFY_FAILED` HOT 1
- pdm install issue: module '_distutils_hack' has no attribute 'add_shim' HOT 1
- [BUG] ImportError: Can't connect to HTTPS URL because the SSL module is not available. HOT 22
- [BUG] negate direct buy only when shipping_type is SHIPPING
- [BUG] setting shipping options doesnt work
- [ENH] Docker with Wayland HOT 1
- [ENH] Work on already logged in Chrome HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kleinanzeigen-bot.