Jump to content
UBot Underground

Anybody Experience Soundcloud Loading Problems With Ubot?


Recommended Posts

Hello,

 

Recently, I guess with the latest SoundCloud design upgrade I've noticed many times that my bot stuck with loading SoundCloud page, particularly on login. I've tried several workarounds for days, and now I'm really out of any any idea how to fix it. I'm pasting the script below for you to see and if anyone has something to add or advise me, I'd appreciate a lot..  Bot usually either stuck on re-login or when closing shared browser page to continue with main browser..

 

For the record:

 

1) I use Chrome 21, uBOT V5.9.19

2) tried w/ and w/o allowing CSS, images, when I turn off flash it the main browser stops working, since I'm doing SoudCloud login in shared browser.

 

Btw, I haven't experienced such issues with some other social media accounts like Youtube, Google+ etc...

define soundcloud login {
    set(#current social account,"Soundcloud","Global")
    set(#segment,"{#soundcloud icon} Account login..","Global")
    clear table(&social Account login)
    create table from file("{$special folder("Desktop")}\\uBOT\\Profiles\\soundcloud.csv",&social Account login)
    set(#total rows,$table total rows(&social Account login),"Global")
    row()
    in shared browser {
        allow css("No")
        allow images("No")
        load html("(blank) (asset://asset)")
        navigate("https://www.soundcloud.com/signin","Wait")
        waitfinish()
        if($exists(<title="Continue with email">)) {
            then {
                type text(<username field>,$table cell(&social Account login,#row,0),"Standard")
                wait(1)
                click(<title="Continue with email">,"Left Click","No")
                wait(1)
                wait for element(<password field>,"","Appear")
                type text(<password field>,$table cell(&social Account login,#row,1),"Standard")
                wait(1)
                click(<innertext="Sign in">,"Left Click","No")
                wait(1)
                navigate("https://soundcloud.com","Wait")
                waitfinish()
                wait for element(<class="g-tabs-link active">,"","Appear")
                if($exists(<class="g-tabs-link active">)) {
                    then {
                        set(#segment,"{#soundcloud icon} Login success!","Global")
                        wait(1)
                    }
                    else {
                        increment(#issues)
                        add item to list(%soundcloud account issue,"{$table cell(&social Account login,#row,0)},{$table cell(&social Account login,#row,1)}","Delete","Global")
                        soundcloud relogin()
                    }
                }
            }
            else {
                soundcloud relogin()
            }
        }
    }
    clear table(&social Account login)
    clean memory single()
    close page
}
define soundcloud relogin {
    clear all cookies()
    set(#segment,"{#soundcloud icon} Account re-login..","Global")
    row()
    load html("(blank) (asset://asset)")
    navigate("https://www.soundcloud.com/signin","Wait")
    waitfinish()
    type text(<username field>,$table cell(&social Account login,#row,0),"Standard")
    wait(1)
    click(<title="Continue with email">,"Left Click","No")
    wait(1)
    wait for element(<password field>,"","Appear")
    type text(<password field>,$table cell(&social Account login,#row,1),"Standard")
    wait(1)
    click(<innertext="Sign in">,"Left Click","No")
    wait(1)
    navigate("https://soundcloud.com","Wait")
    waitfinish()
    if($exists(<class="g-tabs-link active">)) {
        then {
            set(#segment,"{#soundcloud icon} Login success!","Global")
            wait(1)
        }
        else {
            increment(#issues)
            add item to list(%soundcloud account issue,"{$table cell(&social Account login,#row,0)},{$table cell(&social Account login,#row,1)}","Delete","Global")
            soundcloud relogin()
        }
    }
    clear table(&social Account login)
    clean memory single()
    close page
}

Thanks a lot in advance!

Link to post
Share on other sites

Scripts are tricky too. Not suitable for debug
You need to reduce the size To analyze the problem

 

For example, to reduce unnecessary things.
But not tested because there is no an account soundcloud.

define soundcloud login {
    in shared browser {
        allow css("No")
        allow images("No")
        navigate("https://www.soundcloud.com/signin","Wait")
        type text(<username field>,#UserName,"Standard")
        wait(1)
        click(<title="Continue with email">,"Left Click","No")
        wait(1)
        wait for element(<password field>,"","Appear")
        type text(<password field>,#Password,"Standard")
        wait(1)
        click(<innertext="Sign in">,"Left Click","No")
        wait(1)
    }
    navigate("https://soundcloud.com","Wait")
    wait for element(<class="g-tabs-link active">,"","Appear")
}

Link to post
Share on other sites

Thanks, Pash for helping me out.

 

All my login codes are being read and initiated via "Include" plugin, externally from .txt documents. Do you think "wait for element" variables (particularly "#segment") used stat monitor may cause the issues? I'm trying to put together one define for every actions that tend to repeat constantly. I'm also trying to use one list name for the similar stuff like social account login (&social Account login) which I clear once the action is finished to reduce the memory...

 

One more question.. I read somewhere that "load html("(blank) (asset://asset)")" should be loaded when shared browser instance is in use? Does it make any sense to use it? What do you think about close page being used here?

 

Thanks and sorry for the list of questions..

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...