davidteather / BackpackTf-API

Unoffical Backpack.tf wrapper in python
https://davidteather.github.io/BackpackTf-API/
MIT License
14 stars 7 forks source link

ImportError: No module named parse #4

Closed Enzotoy closed 4 years ago

Enzotoy commented 4 years ago

Hello, i have this error on you module:

image

@davidteather, thank you for reply.

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.71. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

davidteather commented 4 years ago

You’re using python 2.7 to run the script when it is only designed for python 3.x. Try python3 bot.py

Enzotoy commented 4 years ago

Thank, it's work, But we can't get the buy oder and sell oder price?

davidteather commented 4 years ago

Can you show me the code you’re running?

Enzotoy commented 4 years ago

image

there is, i'm new to python and i trying to put the price on a json file to make a "if" like that:

if sell_oder < buy_oder print("match found!")

davidteather commented 4 years ago

Since there's different requirements beyond just currency, to get listings you need to make an instance of the Account class.

You need to go to register a BackpackTF app here and use the app details and plug them in below.

from BackpackTF import Account

user = Account(client_id="xxxxxxxxx", client_secret="xxxxxxxxxx", api_key="xxxxxxxxxx")

user.search_classifieds(intent="both")

There are a few other required fields when searching for classifieds that can be found here

Enzotoy commented 4 years ago

Thank but with your code, i have this error now image i tried the code on a VM but i get the same error

davidteather commented 4 years ago

Try to run

pip install requests_oauthlib

If that doesn’t work try

pip3 install requests_oauthlib

Enzotoy commented 4 years ago

Thank you it's work ! i have api access error but i think i can resolve them alone (i think xd) Nice job

davidteather commented 4 years ago

No problem if you’ve got any more issues just comment somewhere