Giter Club home page Giter Club logo

Comments (5)

Wzj910997331 avatar Wzj910997331 commented on May 26, 2024 1

这个问题已经解决了,我客户端的mongo版本降级到3.6就可以正常运行了

from steamtradingsitetracker.

EricZhu-42 avatar EricZhu-42 commented on May 26, 2024

网络问题,可能 Python requests 的请求没有走 UU 的加速通道,因此无法正常连接。

你可以通过以下代码进行测试:

>>> import requests
>>> r = requests.get("https://steamcommunity.com/")
>>> r.status_code
200

如果运行上述代码时出现网络连接相关的错误,则证明你的本地网络目前无法访问 steamcommunity.com。

为解决该问题,你需要手动为涉及到 Steam Market 的 requests 调用传入 proxies 参数,例如修改:

r = requests.get(steam_item_page_fmt.format(hash_name=urllib.parse.quote(hash_name), appid=appid), headers=headers, timeout=30)

如果你本地使用了 clash, ss 等工具,proxies 可以直接使用这些软件自动配置的 http 代理。除此之外,你也可以寻找其他能够正常访问 Steam Market 的代理,或研究一下如何让请求通过 UU 的加速通道。

from steamtradingsitetracker.

Wzj910997331 avatar Wzj910997331 commented on May 26, 2024

经过两天的努力,我终于把代理配好了,然后接着就是遇到mongodb库的问题,以下两张图是trackback
图片

from steamtradingsitetracker.

Wzj910997331 avatar Wzj910997331 commented on May 26, 2024

图片

from steamtradingsitetracker.

Wzj910997331 avatar Wzj910997331 commented on May 26, 2024

然后我本地第一次运行的时候是出现AttributeError: 'Cursor' object has no attribute 'count'这样子的报错,然后通过问了chatgpt,我先是print(pymongo.version)发现是4.3.3,就感觉是pymongodb的版本不对,然后pip install pymongo==3.0进行版本回退,发现count方法能找到了,但是出现以上两张图的查询数据库的报错。我感觉还是库的版本不对,所以想请教一下,是哪里可能出现问题呢?

from steamtradingsitetracker.

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.