Giter Site home page Giter Site logo

textnow-autosend's Introduction

TextNow AutoSend

TextNow AutoSend is a Node Application that allows automatic sent message to anyone. All communication is handled through the Puppeteer API.

Getting Started

1. GitHub Actions

  1. Fork repository

  2. Setting repository secrets for auto-send parameters, for multi-users, split them with "|"

    Name Description
    TEXTNOW_USERNAME TextNow username to login, if multi, use "|" to split.
    TEXTNOW_PASSWORD TextNow password to login, if multi, use "|" to split.
    TEXTNOW_COOKIES TextNow cookies to auto login, base64 encoded, and must with username defined, if multi, use "|" to split.
    TEXTNOW_RECIPIENT Auto-send recipient, if not defined, "(726) 666-0002" will be used.
    TEXTNOW_MESSAGE Auto-send message, if not defined, "auto-send message" will be used.
    CAPTCHA_TOKEN 2captcha token, if defined, hCaptcha will be auto-resolved.
  3. Change actions permissions to allow all actions

  4. Done, it will every hour trigger auto-send action

2. Server Side

git clone https://github.com/aaronlam/textnow-autosend.git

Modify config file, and execute script on the command line:

npm install
# or "yarn install"
npm start
# or "yarn start"

3. How to get cookies for TextNow

  1. Use Chrome to login to https://www.textnow.com/
  2. Install Chrome extension EditThisCookie: https://chrome.google.com/webstore/detail/fngmhnnpilhplaeedifhccceomclgfbg
  3. Use export function of EditThisCookie, all cookies will in clipboard
  4. Convert the clipboard cookies into base64 format: https://www.bejson.com/enc/base64/

4. Contributors

  1. ye4241

textnow-autosend's People

Contributors

aaronlam avatar ye4241 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

textnow-autosend's Issues

自 2021.1.21 开始程序无法在 Github Action 上工作

Github Action 报错,以下是输出信息:

Run node index.js
textnow bot start...
Importing existing cookies...
Failed to import existing cookies.
Logging in with existing cookies
Failed to log in with existing cookies.
Logging in with account credentials...
TimeoutError: Navigation timeout of 30000 ms exceeded
    at /home/runner/work/textnow-autosend/textnow-autosend/node_modules/puppeteer/lib/cjs/puppeteer/common/LifecycleWatcher.js:106:111
    at async FrameManager.waitForFrameNavigation (/home/runner/work/textnow-autosend/textnow-autosend/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:127:23)
    at async Frame.waitForNavigation (/home/runner/work/textnow-autosend/textnow-autosend/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:441:16)
    at async Page.waitForNavigation (/home/runner/work/textnow-autosend/textnow-autosend/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:813:16)
    at async Promise.all (index 1)
    at async Object.module.exports.logIn (/home/runner/work/textnow-autosend/textnow-autosend/utils/helper.js:20:5)
    at async /home/runner/work/textnow-autosend/textnow-autosend/index.js:45:17
Error: Process completed with exit code 1.

我看您这边的 Github Action 昨天开始也出现了同样的问题

TEXTNOW_RECIPIENT phone number?

Hi aaronlam,

Thanks for your great job!
I have a question about the phone number format.
for example, my recipient number is ‪(315) 991-1485 of USA‬, should I put the same format as (315) 991-1485?
and also like to know how many users maximum allowed for auto send?

I got another problem when I tried to use multi-accounts, any of the username/passwords gets wrong, the task will quit, this does cause all the other subsequent accounts to fail.

Can you help me with these problems?

Thanks a lot
Chris.

is no longer working

Run node index.js
Start...
User: *** start...
TextNow bot start...
Importing cookies from environment...
Logging in with existing cookies
Failed to log in with existing cookies: Error: Detected invalid or expires cookies
Logging in with account credentials...
Error: No node found for selector: #txt-username
at Object.assert (/home/runner/work/textnow-autosend/textnow-autosend/node_modules/puppeteer/lib/cjs/puppeteer/common/assert.js:26:15)
at DOMWorld.type (/home/runner/work/textnow-autosend/textnow-autosend/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:307:21)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Object.module.exports.logIn (/home/runner/work/textnow-autosend/textnow-autosend/utils/helper.js:30:5)
at async actionFunc (/home/runner/work/textnow-autosend/textnow-autosend/index.js:74:17)
at async /home/runner/work/textnow-autosend/textnow-autosend/index.js:137:7
Error: Process completed with exit code 1.

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.