skyweb
skyweb copied to clipboard
Hitting captcha wall and how to resolve it
I am hitting the captcha wall a few times while testing my bot. I think it's due to the excessive amount of logins or the fact that I am logged into my regular skype account at the same time. Is there a way to resolve this other than waiting? (I had to wait for 12hours last time).
Yes, it's due to the excessive amount of logins.
- You can try to login manually to web.skype.com(several times) and print CAPTCHA(sometimes it helps).
- If you can somehow change your IP address that will do the trick(VPN or proxy)(works for me at least).
Yet another possible way may be to preserve cookies from previous session(with skypeToken and registrationToken) and try use them if they already exist. Hm, sounds like a neat way for handling this particular issue while developing. Will look into this more closer. Thx.
It worked now without doing anything (probably due to waiting an hour). I'll try the web.skype.com trick next time. VPN did not work :/
I tried login on web.skype.com and solving the CAPTCHA, but it did not unlock the bot. Trying a different IP didn't help.
Possible solution: setting a User-Agent.
In src/login.ts
, replace this line:
this.requestWithJar.get(Consts.SKYPEWEB_LOGIN_URL, (error, response, body) => {
by this line:
this.requestWithJar.get({url: Consts.SKYPEWEB_LOGIN_URL, headers: {"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36"}}, (error, response, body) => {
If it does not work, try to use the same User-Agent as a browser which you just successfully connected with.