Technology

December 31, 2012 / Posted by Cassy Dameron / COMMENTS (0)

Project “MCEGGK” 2013

Every year I have a new project that I bring to life through-out that year and this year is no different than the rest. I have an exciting project that will revolutionize the barrel racing industry. I’ll post updates as project “MCEGGK” progresses.

June 26, 2012 / Posted by Cassy Dameron / COMMENTS (0)

Pinterest API Just Kidding use Powershell

Ok, so today I was thinking about how to post hundreds of videos to Pinterest without the use of the Pinterest API. Since they closed the public Pinterest API we are kind of limited on how we can pin items to our boards. So after a few test I came up with the solution below. Let me know what you think about this little tool. I know that it’s missing the part where you can select which category to put it in but I did get that to work also. Let me know if you need it.


$username ="{YOUR_USERNAME_GOES_HERE}";
$password="{YOUR_PASSWORD_GOES_HERE}";
$url="https://pinterest.com/login/";

$ie= new-object -com internetexplorer.application;
$ie.visible = $true;
$ie.navigate($url);
While ($ie.busy -eq $true) {Sleep -Milliseconds 50}
$doc = $ie.document

#login first
$doc.getElementById(“id_email”).value = $username;
$doc.getElementById(“id_password”).value = $password;
$btn = $doc.getElementsByTagName(“button”) | where-object {$_.innerText -eq ‘Login’}
$btn.click()
While ($ie.busy -eq $true) {Sleep -Milliseconds 50}

#now pin your video
#http://pinterest.com/pin/create/button/?url={YOUTUBE_VIDEO_PATH}&media={YOUTUBE_IMAGE_PATH}&title={VIDEO_TITLE}&description={VIDEO_DESCRIPTION}
$p_url = “http%3a%2f%2fpinterest.com%2fpin%2fcreate%2fbutton%2f%3furl%3dhttp%3a%2f%2fwww.youtube.com%2fwatch%3fv%3dONERTDl1S-Y%26media%3dhttp%3a%2f%2fimg.youtube.com%2fvi%2fONERTDl1S-Y%2f0.jpg%26title%3dChimpanzee+Blu-ray+Trailer%26description%3dFor+every+purchase+of+the+movie+through+August+27%2c+2012%2c+Disneynature+will+make+a+donation+through+the+Disney+Worldwide+Conservation+Fund+to+the+Jane+Goodall+Institute+to+conserve+chimpanzee+habitat%2c+educate+the+next+generation+and+care+for+orphaned+chimpanzees”;
$ie.navigate($p_url);
While ($ie.busy -eq $true) {Sleep -Milliseconds 50}
$btn_pin = $doc.getElementsByTagName(“button”) | where-object {$_.innerText -eq ‘Pin It’}
$btn_pin.click()

#Now Logout
$out_url = “http://pinterest.com/”
$ie.navigate($out_url);
$lnkLogout = $doc.getElementsByTagName(“a”) | where-object {$_.innerText -eq ‘Logout’}
$lnkLogout.click()

#Close Down IE
$ie.Quit()