Giter Club home page Giter Club logo

Comments (8)

wdzeng avatar wdzeng commented on June 10, 2024

因為舊筆電無法安裝docker,我想測試使用Node.js環境執行,請問可以嗎?

可以。以 npm build 可以把 ts 轉為 js。瀏覽器 driver 的部分需要自己注意一下。

from shopee-coins-bot.

ray1025 avatar ray1025 commented on June 10, 2024

我指令這樣下,正確嗎?

git clone https://github.com/wdzeng/shopee-coins-bot
cd shopee-coins-bot
npm install
npm run build
node dist/index.js -c *** -u *** -p ***

from shopee-coins-bot.

ray1025 avatar ray1025 commented on June 10, 2024

我現在沒有執行成功,是缺 Firefox 瀏覽器的核心嗎?

from shopee-coins-bot.

wdzeng avatar wdzeng commented on June 10, 2024

我指令這樣下,正確嗎?

git clone https://github.com/wdzeng/shopee-coins-bot
cd shopee-coins-bot
npm install
npm run build
node dist/index.js -c *** -u *** -p ***

是。

from shopee-coins-bot.

wdzeng avatar wdzeng commented on June 10, 2024

我現在沒有執行成功,是缺 Firefox 瀏覽器的核心嗎?

請求排除錯誤時貼 Log 是基本常識。

這個機器人用的是 chromium。如果你想用 Firefox,則要修改程式碼。

這方面的設定比較複雜且有一些不確定性,這是我包成 image 的原因。

from shopee-coins-bot.

ray1025 avatar ray1025 commented on June 10, 2024
$ node dist/index.js -u 12345678 -p 12345678
Start shopee coins bot v1.1.0.
Passing password from command line is considered insecure. Should use environment variable or password file.

然後就沒了@@

from shopee-coins-bot.

wdzeng avatar wdzeng commented on June 10, 2024
$ node dist/index.js -u 12345678 -p 12345678
Start shopee coins bot v1.1.0.
Passing password from command line is considered insecure. Should use environment variable or password file.

然後就沒了@@

我現在沒有執行成功,是缺 Firefox 瀏覽器的核心嗎?

很可能是。但這個機器人用的是 chromium,你需要安裝 chromium 還有 driver。如果你要用 firefox 的話,就要自己修改原始碼。

from shopee-coins-bot.

ray1025 avatar ray1025 commented on June 10, 2024

收到,我試試安裝 chromium 核心。
感恩。

from shopee-coins-bot.

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.