Giter VIP home page Giter VIP logo

getbuffdatas's Introduction

此项目是一个实验性质的项目,不打算继续更新。代码和接口仅供参考

getBuffDatas

爬取网易Buff.com的数据并实时交易

简介

本程序用于爬取buff.com上的数据,用户可以设置想要监测的枪械的磨损度和价格区间来实时监测。如果监测到符合要求的装备就会自动购买。

程序实现的功能如下:

  1. 自动登录,这是通过selenium模拟点击浏览器获得到cookie实现的,cookie被保存在cookies_string.txt文档中
  2. 批量爬取,写入data.txt的文件得以实现批量工作,写入格式为: 类别,枪械全称,最低价格,最高价格,最低磨损,最高磨损 例如:二西莫夫,AK-47 | 二西莫夫 (崭新出厂),100,200,0.1,0.12 注意:需要用逗号分隔每一项,且类别名不能写错
  3. GUI页面,使用tkinter写了GUI,方便使用。
  4. 异步处理
  5. ip隧穿实现高速爬取

使用方法

  1. 将文件clone到本地git clone
  2. cd到解压的文件夹 pip install -r requirements.txt
  3. python -m GUI.py

注意事项

  1. 打开GUI页面之前检查程序同目录下有没有“data.txt”,"cookies_string.txt"文件,如果没有可以自己建一个(GUI页面插入也会自动建),如果没有这两个文件会报错。
  2. 使用自动获取cookie的功能时确保文件不处于中文路径上 (opencv在中文路径上会报错)

getbuffdatas's People

Contributors

mansionme avatar

Stargazers

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

Watchers

 avatar

getbuffdatas's Issues

问题

Traceback (most recent call last):
File "D:\Program Files (x86)\Python3.10.2\lib\runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "D:\Program Files (x86)\Python3.10.2\lib\runpy.py", line 110, in _get_module_details
import(pkg_name)
File "C:\Users\Administrator\Desktop\getBuffDatas-main\GUI.py", line 7, in
import getCookie
File "C:\Users\Administrator\Desktop\getBuffDatas-main\getCookie.py", line 2, in
from webdriver_manager.chrome import ChromeDriverManager
ModuleNotFoundError: No module named 'webdriver_manager'

问题

大佬,requirements.txt是不是没放呀,库的版本不对可能运行会有问题~

重复购买

这个在购买成功或失败后是停止运行了吗,还是会再次重新运行

问题

老哥我想请问一下,这样频繁获取数据不会被buff封吗?

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.