Youtube Auto Comment

Snurry

Newbie
Joined
Oct 2, 2009
Messages
41
Reaction score
6
I looking to find if youtube comments can be left in the actual URL.

With wp blogs the comment field is a post form so comments can be left directly through url like:

http://blog.test/wp-comments-post.php?=comment=blahblahblah&comment_post_ID=10 or something similar.


I'd like to know if this can be done with youtube comments as well.

Code:
<input type=\"button\" name=\"add_comment_button\" value=\"Post Comment\" onclick=\"yt.www.comments.writing.postThreadedComment(\'comment_form${form_id}\');\">

That's the code for the post button.
As far as I can tell this is the information submitted when clicked.
Code:
onclick=\"yt.www.comments.writing.postThreadedComment(\'comment_form${form_id}\');\"
Maybe there is some way of using javascript to post comments.

Anyone know if it's possible, and a push in the right direction would be appriciated.
 
Hmm i dont believe its possible as youtube passes its comments through a much stricter system that checks further for spam and whatnot. At least thats my take on it but i wouldnt take my info as 100% tho
 
Anyone else?

Looking at it a bit further it turns out it's a normal html post form in essence.

The form is post to /comment_servlet?add_comment=1&comment_type=V

The value of add_comment_button is "Post Comment".
But what has me confused is the onclick part:

Code:
onclick="yt.www.comments.writing.postThreadedComment('comment_formmain_comment');"

I'm looking for a way a comment can be sent through the browser url, or HTTP headers.


Cheers
 
Your message goes through a spam-filter, as soon as you hit submit. They obviously blocked any sort of "http://" "www". What you are trying to do is highly off-stretched, and not the worth the time to bypass it to be honest. - they would catch to it quickly ether way.
 
I think you're misunderstanding.

I'm not trying to put a url in the comment.
I'm trying to submit the comment form through HTTP protocol.

A normal wordpress comment form looks like:
Code:
<form action="http://wordconstructions.com.au/blog/wp-comments-post.php" method="post" id="commentform">
<p><input type="text" name="author" id="author" value="" size="22" tabindex="1" aria-required='true' />
<p><input type="text" name="email" id="email" value="" size="22" tabindex="2" aria-required='true' />
<p><input type="text" name="url" id="url" value="" size="22" tabindex="3" />
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
<input type='hidden' name='comment_post_ID' value='866' id='comment_post_ID' />
<input type='hidden' name='comment_parent' id='comment_parent' value='0' />
</form>


From that I can directly submit the from through HTTP in a number of different ways.

Using sockets in mIRC I can retreive the names and values of the various form inputs, and use them to simulate posting a comment through a browser.

With WP blogs it's easy to simulate clicking the submit button with
Code:
&submit=Submit%20Content

But it's not so easy for youtube because it has a onclick event:
Code:
onclick=\"yt.www.comments.writing.postThreadedComment(\'comment_form${form_id}\')

I hope you can see where I'm trying to go with this. Basically I'm writing a mIRC bot to retreive urls from a text file and automatically comment on their pages.
 
why not use a script language and automate through the brower. i think the problem is not posting fast enough but getting new ips and logins. else youtube flag the posts as spam.
 
Sorry about that; your first sentence mis-lead me.

I see what you are trying to do and it is a bit astonishing since i haven't went the 'irc' way in making a bot just yet. I wouldnt know how to help you with this method, i bet you would be better off posting in an actual scripting/coding forum since this seems a little advanced for the kiddies here.
 
why not use a script language and automate through the brower. i think the problem is not posting fast enough but getting new ips and logins. else youtube flag the posts as spam.

I was thinking about another script language like php or iMacros which seems to be pretty popular. But I have some experience with the mIRC scripting language and I like the syntax.

There's not much problem with logging in through IRC. And I'd use some simple macro software to renew my ip through the command line.


BunThings said:
Sorry about that; your first sentence mis-lead me.

I see what you are trying to do and it is a bit astonishing since i haven't went the 'irc' way in making a bot just yet. I wouldnt know how to help you with this method, i bet you would be better off posting in an actual scripting/coding forum since this seems a little advanced for the kiddies here.


Yea there's not too much support for mIRC scripting on the net these days. I might pop over to mircscripts.org and see if I can get some help there.

My main problem isn't with the actual mIRC scripting though, it's understanding the HTTP POST request to post a <form>.

A POST request looks like this:

Code:
POST /comments.php HTTP/1.1
Host: youtube.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Length: 25
Content-Type: application/x-www-form-urlencoded
$crlf
name1=value1&name2=value2

There's a few things I need clearing up.
Which controls are required to post a form (Content-Type, Content-Length) and which are optional?
And will the Content-Type of a form always be application/x-www-form-urlencoded or will it be an attribute in the form (<form Content-Type="othertype")?

Cheers
 
Back
Top