public static String createBingUrl ( String keyword , int pageIndex ) throws Exception { int first = pageIndex * 10 - 9 ; keyword = URLEncoder . encode ( keyword , "utf-8" ) ; return String . format ( "http://cn.bing.com/search?q=%s&first=%s" , keyword , first ) ; }
construct the Bing Search url by the search keyword and the pageIndex