Jump to content


Photo

[I NEED HELP!] - HTTP requests and Youtube

http request youtube youtube bot http requests scripting http requests tutorial

  • Please log in to reply
22 replies to this topic

#1 iDollarsteam

iDollarsteam

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 133 posts
  • LocationRomania
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 29 April 2013 - 08:37 AM

I have a plugin that is enhancing Ubot and make it possible to use http post and http get (most of you know it, is a great plugin made by Aymen from this forum). I try to use this plugin to make ubot login to YouTube using HTTP Requests. I managed to get all the parameters from the login page using HTTP Get function and also using regex to sort the result. When I try to post using HTTP Post function I get as result the error page from youtube and this message:  There was an issue logging you into YouTube ...  Here is my code so far:

 

clear list(%useragents)
add list to list(%useragents, $list from file("{$special folder("Application")}\\UserAgents"), "Delete", "Global")
set(#useremail, "YTLogin@gmail.com", "Global")
set(#userpass, "YTPassword", "Global")
set(#UserAgent, $list item(%useragents, $rand(0, $subtract($list total(%useragents), 1))), "Global")
set(#Proxy, "proxy:port:proxyuser:proxypass", "Global")
set(#URL, "https://accounts.google.com/ServiceLogin?service=youtube&continue=http%3A%2F%2Fwww.youtube.com%2Fsignin%3Faction_handle_signin%3Dtrue%26feature%3Dsign_in_button%26hl%3Den_US%26next%3D%252F%26nomobiletemp%3D1&uilel=3&hl=en_US&passive=true", "Global")
plugin command("HTTP post.dll", "Clear Cookies", #URL)
set(#GETloginpage, $plugin function("HTTP post.dll", "$http get", #URL, #UserAgent, "www.youtube.com", #Proxy, 15), "Global")
set(#continue, "http://www.youtube.com/signin?action_handle_signin=true&feature=sign_in_button&hl=en_US&next=%2F&nomobiletemp=1", "Global")
set(#service, "youtube", "Global")
set(#dsh, $find regular expression(#GETloginpage, "(?<=id=\"dsh\"\\s* value=\")[\\w\\W]*?(?=\")"), "Global")
set(#hl, "en_US", "Global")
set(#GALX, $find regular expression(#GETloginpage, "(?<=name=\"GALX\"\\s*value=\")[\\w\\W]*?(?=\")"), "Global")
set(#pstMsg, 1, "Global")
set(#dnConn, $nothing, "Global")
set(#checkConnection, "youtube:1000:1", "Global")
set(#checkedDomains, "youtube", "Global")
set(#timeStmp, $nothing, "Global")
set(#secTok, $nothing, "Global")
set(#_utf8, $find regular expression(#GETloginpage, "(?<=name=\"_utf8\"\\s* value=\")[\\w\\W]*?(?=\")"), "Global")
set(#bgresponse, $find regular expression(#GETloginpage, "(?<=id=\"bgresponse\"\\s* value=\")[\\w\\W]*?(?=\")"), "Global")
set(#Email, #useremail, "Global")
set(#Passwd, #userpass, "Global")
set(#signIn, "Sign in", "Global")
set(#PersistentCookie, "yes", "Global")
set(#rmShown, 1, "Global")
set(#POSTloginpage, $plugin function("HTTP post.dll", "$http post", "https://accounts.google.com/ServiceLoginAuth", "continue={#continue}&service={#service}&dsh={#dsh}&hl={#hl}&GALX={#GALX}&pstMsg={#pstMsg}&dnConn={#dnConn}&checkConnection={#checkConnection}&checkedDomains={#checkedDomains}&timeStmp={#timeStmp}&secTok={#secTok}&_utf8={#_utf8}&bgresponse={#bgresponse}&Email={#Email}&Passwd={#Passwd}&signIn={#signIn}&PersistentCookie={#PersistentCookie}&rmShown={#rmShown}", #UserAgent, #URL, #Proxy, 15), "Global")
load html(#POSTloginpage)

 

If someone with a longer experience with HTTP Requests can help please show me what I'm doing wrong and how to make this work and login!! (I have replaced in the code here the user, pass and proxy with generic ones).

 

I know that in our community are great programmers that know their way around HTTP ... and I also know that very few will want to help someone else find solutions to Youtube related problems but... I still hope :))

 

Thank you! :)

 

PS I get the user agents from an external file that I compiled from the most used user agents :) so you can assign one of your choice to the variable in the script



#2 Aymen

Aymen

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 1231 posts
  • OS:Windows 8
  • Total Memory:4Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 29 April 2013 - 10:01 AM

seeing your URL , i'm sure your missing some hidden tokens (access keys)


★★★List Of Killer Ubot Plugins★★★

 

Found Bugs In One Of My Plugins ? Submit It Here

 

Refund Policy is Clear : No Refunds on all Ubot Plugins


#3 iDollarsteam

iDollarsteam

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 133 posts
  • LocationRomania
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 29 April 2013 - 12:04 PM

nope I don't but one hidden token seem to be generated dynamically by javascript on the page ... when I get the tokens using the GET function that parameter returned  "js_disabled" but if I login in a browser and I use Fiddler to see the http req that parameter has a different value every time ... I think there is something with the ubot (or plugin) blocking javascript on the page... I'm not sure... in the GET result and in the Fiddler result I have the same 18 tokens - 4 visible for the user to fill or interact and 14 hidden ... If you can find more please let me know :)



#4 iDollarsteam

iDollarsteam

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 133 posts
  • LocationRomania
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 02 May 2013 - 04:28 AM

Solved it :) ... with another method of using HTTP REQ. not with the plugin atm (it still needs a lot of work on cookie manipulation and control, I'm sure in future upgrades it will work fine with google and yt ... but not now, at least not for me...)



#5 earthlingj

earthlingj

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 169 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 30 May 2013 - 08:03 PM

how did you get the bgresponse?



#6 iDollarsteam

iDollarsteam

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 133 posts
  • LocationRomania
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 31 May 2013 - 01:25 PM

:) hint - use CURL



#7 earthlingj

earthlingj

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 169 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 03 June 2013 - 01:54 PM

haha never used CURL before. looks like ill be stuck on this one lol



#8 iDollarsteam

iDollarsteam

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 133 posts
  • LocationRomania
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 04 June 2013 - 12:43 AM

this one will not work for now, the plugin can't manipulate cookies yet



#9 earthlingj

earthlingj

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 169 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 04 June 2013 - 06:39 AM

oh, so its not possible to login to youtube with the plugin yet?



#10 iDollarsteam

iDollarsteam

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 133 posts
  • LocationRomania
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 06 June 2013 - 12:50 PM

nope

Aymen told me that he is working on the cookies manipulation update ... so... in a while...



#11 safetys

safetys

    Newbie

  • Members
  • Pip
  • 5 posts
  • OS:Windows Vista
  • Total Memory:3Gb
  • Framework:v4.0
  • License:None Yet

Posted 25 June 2013 - 11:29 AM

:) hint - use CURL

what's the meaning, I'm try to login in google, and I don't know how to get    bgresponse   value ?

Can you help me and descript in more detail ??

Thanks.



#12 iDollarsteam

iDollarsteam

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 133 posts
  • LocationRomania
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 25 June 2013 - 05:43 PM

... I don't want to sound mean but... I have studied and learned about http requests and google/youtube for the last 3 month and this is VERY valuable stuff ... I have given you the start to do it : "use CURL" ... google it, search this forum and other forums, experiment... a youtube bot that use http requests and works can be sold with a lot of money so I can't give you the "fish" ... I have just give you the "fishing rod" !



#13 safetys

safetys

    Newbie

  • Members
  • Pip
  • 5 posts
  • OS:Windows Vista
  • Total Memory:3Gb
  • Framework:v4.0
  • License:None Yet

Posted 25 June 2013 - 10:42 PM

... I don't want to sound mean but... I have studied and learned about http requests and google/youtube for the last 3 month and this is VERY valuable stuff ... I have given you the start to do it : "use CURL" ... google it, search this forum and other forums, experiment... a youtube bot that use http requests and works can be sold with a lot of money so I can't give you the "fish" ... I have just give you the "fishing rod" !

Sorry,But what's a  CURL ? A sofeware or  php functions or other??



#14 iDollarsteam

iDollarsteam

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 133 posts
  • LocationRomania
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 26 June 2013 - 06:17 AM

it is a library of functions that you can use in php but it is also in executable version that you can automate with ubot ... google it and get on their site, you can learn everything from there 



#15 safetys

safetys

    Newbie

  • Members
  • Pip
  • 5 posts
  • OS:Windows Vista
  • Total Memory:3Gb
  • Framework:v4.0
  • License:None Yet

Posted 26 June 2013 - 07:42 AM

it is a library of functions that you can use in php but it is also in executable version that you can automate with ubot ... google it and get on their site, you can learn everything from there 

Can you sell it to me ? My mother lanuage is chinese, so my english is so poor, I believe I can't find the solution even if I spent lots of time.



#16 iDollarsteam

iDollarsteam

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 133 posts
  • LocationRomania
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 26 June 2013 - 12:12 PM

sell you what? CURL is free ... if you want a http request youtube bot... that is another thing :)



#17 safetys

safetys

    Newbie

  • Members
  • Pip
  • 5 posts
  • OS:Windows Vista
  • Total Memory:3Gb
  • Framework:v4.0
  • License:None Yet

Posted 26 June 2013 - 02:44 PM

Of course   http request youtube bot, use this tools, If I can login google or google other products?



#18 Sanjeev

Sanjeev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 268 posts
  • OS:Windows 8
  • Total Memory:1Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 28 June 2013 - 07:45 AM

@iDollarsteam ... can we run the 'cURL'  shell commands , multi threaded too?

Thanks.



#19 iDollarsteam

iDollarsteam

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 133 posts
  • LocationRomania
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 30 June 2013 - 01:37 AM

yep, if you use different local variables in the shell command



#20 Sanjeev

Sanjeev

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 268 posts
  • OS:Windows 8
  • Total Memory:1Gb
  • Framework:v3.5
  • License:Developer Edition

Posted 01 July 2013 - 03:16 AM

Thanks!







Also tagged with one or more of these keywords: http request, youtube, youtube bot, http requests scripting, http requests tutorial

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users