Written in js because:
- Cloudflare on the site blocks connection attempts from the needed web sockets that I'd originally written in python
- This project uses Puppeteer and a still functional plugin that enables automation without being stopped by Cloudflare
- The python alternative is pretty outdated and was transplanted by the Puppeteer plugin anyway
Using this requires Node.js and a list of dependencies is listed in package.json which can be installed by running
npm i
Firstly, the CHANNEL
variable in .env must be set to the name of the Cytube channel the program should run using. Several settings in this file can also be modified to change how the program behaves. Then in the command prompt, navigate to the same directory as index.js and run
node index.js
Depending on which login method is set in .env, either a prompt for an authentication cookie will appear, or the Cytube login page will be brought up. In the case of the former, the cookie can be found by logging into Cytube, inspecting the page >> Application >> Cookies (left sidebar) >> and copying the value in the auth
row. The cookie does change every so often so if the Add as temporary
checkbox is greyed out, it means that the auth value being used is outdated
- If there's a disconnection because of a duplicate login, pause the execution and press enter to resume rather than having to rerun the script
- Notify user to update auth token if the
Add as temporary
checkbox is disabled