GithubHelp home page GithubHelp logo

kamoo1 / kamoo-s-tsm-app Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 11.0 824 KB

Updates and exports auction data for the Trade Skill Master (TSM) addon. Supports all regions & game versions, with periodic updates on GitHub.

License: GNU Affero General Public License v3.0

Python 98.46% Makefile 1.54%
tradeskillmaster world-of-warcraft wow world-of-warcraft-addon wow-api wow-classic wow-vanilla

kamoo-s-tsm-app's People

Contributors

kamoo1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

kamoo-s-tsm-app's Issues

Private Servers

Hi, I haven't tried it yet but it looks like a great tool.
Is it possible for you to add support for private servers?

Blizzard authentification

Hello
I just stumbled on the project ! it's awsome
I forked the repo and tried to run it on github actions
I added my bnet client ID and secret in my_env
but i'm getting this error message in the update AH action
image

'Name or Service not known' when running

Hello,

I just cloned the repo and am following the directions to run the tool to collect the AH data. I successfully created a dev account and am using the following command to run (in a VENV):

BN_CLIENT_ID="<omitted>" BN_CLIENT_SECRET="<omitted>" python -m ah.updater --game_version classic us

Here's the error message I get:

Traceback (most recent call last):
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/urllib3/util/connection.py", line 72, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/socket.py", line 962, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/urllib3/connectionpool.py", line 714, in urlopen
    httplib_response = self._make_request(
                       ^^^^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/urllib3/connectionpool.py", line 403, in _make_request
    self._validate_conn(conn)
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1053, in _validate_conn
    conn.connect()
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/urllib3/connection.py", line 363, in connect
    self.sock = conn = self._new_conn()
                       ^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f76179cf890>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/urllib3/connectionpool.py", line 798, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='regionenum.us.api.blizzard.com', port=443): Max retries exceeded with url: /data/wow/connected-realm/index?namespace=dynamic-classic1x-us&locale=en_US&access_token=<ommitted> (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76179cf890>: Failed to establish a new connection: [Errno -2] Name or service not known'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/myuser/git/TSM-Backend/ah/updater.py", line 198, in <module>
    main(**vars(args))
  File "/home/myuser/git/TSM-Backend/ah/updater.py", line 163, in main
    start_ts, end_ts = task_manager.update_region_dbs(namespace)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/ah/updater.py", line 70, in update_region_dbs
    for crid in crids:
  File "/home/myuser/git/TSM-Backend/ah/api.py", line 95, in pull_connected_realms_ids
    connected_realms = self.wrapper.get_connected_realms_index(namespace)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/ah/cache.py", line 100, in inner
    value = func(that, *args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/ah/api.py", line 28, in get_connected_realms_index
    return self._api.wow.game_data.get_connected_realms_index(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/ah/vendors/blizzardapi/wow/wow_game_data_api.py", line 112, in get_connected_realms_index
    return super().get_resource(resource, region, query_params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/ah/vendors/blizzardapi/api.py", line 85, in get_resource
    return self._request_handler(url, region, query_params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/ah/vendors/blizzardapi/api.py", line 69, in _request_handler
    response = self._session.get(url, params=query_params)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/myuser/git/TSM-Backend/lib/python3.11/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='regionenum.us.api.blizzard.com', port=443): Max retries exceeded with url: /data/wow/connected-realm/index?namespace=dynamic-classic1x-us&locale=en_US&access_token=<ommitted> (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f76179cf890>: Failed to establish a new connection: [Errno -2] Name or service not known'))

It looks like it's trying to connect to 'regionenum.us.api.blizzard.com', which is not a valid host. Any suggestions on resolving this issue?

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.