Tuesday, May 28, 2013

YouTube comment bot with Psycho Script in 10 lines of code

Youtube Comment Poster with Psycho Script in 2 minutes

Hi all,
In this post I will show you how to make a YouTube comment poster bot with Psycho Script in 2 minutes.
Psycho Script comes with Incog Dai SEO software.

Below is code for commenting in Youtube videos.
//BROWSER = "IE"
//Remove the slashes (uncomment) the above line to use Internet Explorer
//First log out
browser = goto "https://accounts.google.com/Logout?continue=https%3A%2F%2Fwww.youtube.com&service=youtube"
//Then click the sign in button
click elementby("partiallinktext","Sign") of browser
//Wait for 4 seconds for the page to load. Change it depending on your internet connection speed
sleep 4
//Replace YOURUSERNAME and YOURPASSWORD with your usename and password. Do not remove the quotes.
type "YOURUSERNAME" in elementby("name","Email") of browser
type "YOURPASSWORD" in elementby("name","Passwd") of browser
//Submit the form. Any element inside the form can be used to submit
submit  elementby("name","Passwd") of browser
//Now we are logged in and ready to post comments.
//Goto a url. You can load a list of urls from file and the post comments in all of them. For this example we will conside this one.
using browser goto "https://www.youtube.com/watch?v=DZTXTPz9TC8"
//What to comment.
comment = "nice video man!"
//Find the comment box
commentbox = elementby("name","comment") of browser
//Youtube requires us to click to leave a comment. So click it
click commentbox
//After clicking type our comment
type comment in commentbox
//Submit
submit commentbox
//End of submitter

If you want to load video urls from a file, comments from a file the use the code below after logging in.
//Load the video urls as a list
videourls = readlist("D:/youtubevideos.txt")
//load the comment file
spinnedComment = read("D:/youtubespinnedcomment.txt")
//for each url in list we want to post comment
for url in videourls do
  //What to comment. Get a random text from spinned comment
  comment = spin(spinnedComment)
  //Find the comment box
  commentbox = elementby("name","comment") of browser
  //Youtube requires us to click to leave a comment. So click it
  click commentbox
  //After clicking type our comment
  type comment in commentbox
  //Submit
  submit commentbox
end //our loop ends here

 

No comments:

Recent Posts