Giter Club home page Giter Club logo

buffbot's Introduction

Buff163 Bot

A python script that scrapes and monitors webpages on buff.163.com and allows users to automatically purchase items

Installation

  1. Clone the repository
git clone https://github.com/RamenMode/buff163scraper.git
  1. Use the package manager pip/pip3 to install selenium
pip3 install selenium
  1. Install ChromeDriver, making sure to follow the version requirements associated with your chrome browser listed on the website

Usage

Make sure you are in the 'buffbot' directory

  1. Obtain cookies for your buff163 session
python3 getCookies.py

After the automated session loads, login to your Steam account on Buff and wait until browser automatically closes. Do not share your cookies with anyone.

  1. Specify webpage item pages to scrape in the buff.json, modifying links as you wish. Ex: https://buff.163.com/goods/36436.

  2. Run the script with parameters, first two being the range of scrapers included and the second being the maximum float acceptable. Below is an example, which uses the links of scraper1, scraper2, scraper3, and scraper4 in buff.json with a maximum float of 0.10

python3 scrapeBuff.py 1 4 0.10
  • Note that if any items fit the criteria you have listed, they WILL be purchased by the script

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

buffbot's People

Contributors

ramenmode avatar

Stargazers

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

Watchers

 avatar  avatar

buffbot's Issues

没有看懂里面的1 4 0.1

能批量设置里面的商品id吗,以及最高价格磨损区间在这个范围内就购买,最好让自己的小号cookie扫描,大号购买,保障大号安全,这些能做吗小号cookie扫也可添加多个然后设置休眠时间

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.