#include <iostream>
#include <string>
#include <windows.h>
using namespace std;
string WebSearch(string query)
{
int i=0;
for(i; i<query.size(); i++)
{
if(query[i]==' ')
{
query=query.replace(query.find(" ",0), 1, "+");
}
else if(query[i]=='+')
{
query=query.replace(query.find("+",0), 1, "%2B");
}
}
string url="http://keepvid.com/?url=http%3A%2F%2F";
url.insert(url.size(), query);
return url.c_str();
}
int main()
{
system("title TheEliteOne's Video Downloader");
cout<<"Enter the link to the vide you want to donwload (No http://)\n\n";
string s;
getline(cin,s);
s=WebSearch(s);
ShellExecute(NULL, "open", s.c_str(), NULL, NULL, SW_SHOWNORMAL);
return 0;
}
Bookmarks