Posts

Showing posts from August, 2016

SEARCH VIDEOS USING YQL PROXY SERVER

Image
To use this page you don't have to install XAMPP web server on your PC. However if you've installed XAMMP, it's best to use it. You can do as the following: Firstly: Create the file "yql-proxy.html" inside your folder C:\xampp\htdocs\proxy\ Next: Choose Fire Fox as your default browser. Finally: simply click on the file name "yql-proxy.html" to watch it. It will be better if you correct "file:///C:/xampp/htdocs/" to "localhost/" then reload the page. The benefit of opening the pages in the XAMPP local server is that we can view more video clips. You can try my page "yql-proxy.html" at the address below: http://play-videos.url.ph/1609/proxy/yql-proxy-1.html The server http://query.yahooapis.com will give us the code wrapped inside <body> and </body> tags. After that we'll start writing our script: We can quickly switch from the "php-jquery-proxy" method to &qu

PHP JQUERY PROXY DEMO

Image
Proxy script (or proxy program) is a script, wich is located between the user's browser and the "target server". Here I'would like to make a simple demo for PHP-Jquery-script proxy method. So far in my blog I just use YouTube API v.3 and JavaScript-jQuery to find videos. This time I try to use PHP language and jQuery to find videos. We often hear about "Web scraping with PHP," which can be roughly considered to include 9/10 PHP and 1/10 jQuery. Now I want to do it again but with 1/10 PHP and 9/10 jQuery. This page ("php-jquery-proxy.html") is for web scraping using mainly jquery-ajax in combination with only one function from PHP language (get_file_contents function). Using it I can get video ids, video titles from the source code of youtube pages and watch those videos continuously. To use this page you don't need to have Youtube API-3 key but need to download from Internet the XAMPP package