Skip to main content

How to make a custom search engine and search the resources from Baidu cloud disk?

Baidu cloud disk is a popular net disk in China, nowdays there are almost 0.4 billion users across the country, also there are a huge numbers of users overseas. There are a lot of shared content on it, video, e-book, music, etc, and many of these are downloadable. Thus, it is convenient for us to collect a lot of learning resources from it to improve us. 

Combine google's custom search engine, we can find the resources easily. Below is the steps:-

1. Type google custom search engine in the textares, and press enter.
2. The very first one is the right link, click it.


3. Then we come to the Custom Search control center. Click the "Add" button.

4. The create new CSE page shows. The rules are quite clear below. As the site we are going to search is baidu cloud, so we add the sites in the text area as below:-
pan.baidu.com/*
yun.baidu.com/*

5. Finally, we click the "Creat" button in the bottom of the page, done. The final outlook is like folloing.


Congratulations, now you have your CSE to search the resources you like! How can we use it? You can test it by click the CSE in right side of the page, or you can click the "Get Code" and copy the code, then paste it on your own website, then the visitors can use your search engine to search the materials they want.





Comments

Popular posts from this blog

span[class~="sr-only"]

  The  span[class~="sr-only"]  selector will select any  span  element whose  class   includes   sr-only . Create that selector, and give it a  border  property set to  0 . span [ class ~= "sr-only" ] {    border:   0 ; }

Use Recursion to Create a Range of Numbers

  function   rangeOfNumbers ( startNum ,  endNum ) {    if ( startNum <= endNum )   {      const   arrNumber  =  rangeOfNumbers ( startNum ,  endNum - 1 );      arrNumber . push ( endNum );      return   arrNumber ;   }    else  {      return  [];   }       }; console . log ( rangeOfNumbers ( 6 , 8 ));//[6,7,8] console . log ( rangeOfNumbers ( 3 , 12 )); //[ 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]

About the Little Lemon receipt maker exercise

 My homework and exercise of the lesson "About the Little Lemon receipt maker exercise" of the class "programming with Javascript" on coursera. const menu = [     {         Dish : "Italian pasta" ,         price : 9.55     },     {         Dish : "Rice with veggies" ,         price : 8.65     },     {         Dish : "Chicken with potatoes" ,         price : 15.55     },     {         Dish : "Vegetarian Pizza" ,         price : 6.45     } ]; function receiptMaker ( arr , bool ) {     if ( bool == false )     {         console . log ( "Prices without tax:" );         arr . forEach ( element => {             console . log ( `Dish: ${ element . Dish } Price (incl.tax):$ ${ element . price } ` );                     });     }     else     {         console . log ( "Prices with 20% tax:" );         arr . forEach ( element => {             console . log ( `Dish: ${ element . Dish } Price (inc