GithubHelp home page GithubHelp logo

Comments (10)

DreckSoft avatar DreckSoft commented on May 29, 2024

It is also unclear how to click checkboxes, for example in Cars autos.abs_b

from kleinanzeigen-bot.

chrwm avatar chrwm commented on May 29, 2024

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.
image

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.

sebthom avatar sebthom commented on May 29, 2024

@chrwn It looks like you are using a too old version of the bot

from kleinanzeigen-bot.

chrwm avatar chrwm commented on May 29, 2024

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.

sebthom avatar sebthom commented on May 29, 2024

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.

chrwm avatar chrwm commented on May 29, 2024

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.

sebthom avatar sebthom commented on May 29, 2024

Can you give this a try:

git fetch
git reset origin/main --hard

from kleinanzeigen-bot.

chrwm avatar chrwm commented on May 29, 2024

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.

rockodd avatar rockodd commented on May 29, 2024

It is also unclear how to click checkboxes, for example in Cars autos.abs_b

Someone knows how to use checkboxes?

from kleinanzeigen-bot.

stale avatar stale commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.