沒怎樣~只1000多頁的資料要更新
放了個 loop給他跑~
每PING一次隔3秒~
PING了2百多次之後~
YAHOO回傳ERROR 900
真是有夠遜的~
google連PING了1100多次~
沒有出現錯誤訊息~
而且~3分鐘後就來抓網頁了~
Yahoo~除了入口網站~
你的搜尋~真的很遜~
心靈力量決定發展的方向
今天看了wordpress的官方論壇,裡面說,有越來越多的作業系統、手機可以寫Blog,
所以要統一標準,而這個標準是ATOM而不是xml-rpc….
The Atom API is a new REST-based API:
We should support all of the Atom API we can, because a new generation of clients, such as Nokia cell phones, OS X, and desktop clients have exclusive support for it and not XML-RPC.
哇咧….我還把xml-rpc的spec給k了一遍~
現在才說不是標準~
哇咧咧…..
不過看了一下~
支援Atom的BSP(blog service provider)還不少~
我想~如果我自己把這樣的API寫出來~
以後我自己更新眾多Blog時也會方便很多
那個apache的header rewrite也要研究一下
應該也蠻好玩的~
Edit phpMyAdmin-2.7.0-pl2/libraries/select_lang.lib.php:
在這一段裡:
// MySQL charsets map
$mysql_charset_map = array(
將 'utf-8' => 'utf8', 改成: 'utf-8' => 'latin1',
將: 'big5' => 'big5', 改成: 'big5' => 'latin1',
將:
'zhtw-big5' => array('zh[-_](tw|hk)|chinese traditional',
'chinese_traditional-big5', 'zh-TW'),
改成:
'zhtw-big5-utf-8' => array('zh[-_](tw|hk)|chinese traditional',
'chinese_traditional-big5', 'zh-TW'),
以上修改法取自 http://phpbb-tw.net/phpbb/viewtopic.php?p=212048&
進入 phpMyAdmin 的首頁,在 Language 的選項中選:”Chinese traditional (zhtw-big5-utf-8)”.
若要 import 含有 big5 的 sql 檔,在”文字編碼檔案:”中選”latin1″,不要選 “big5”.
Yahoo 提供了自定RSS來源的功能
但是~跟白痴造句法有異曲同工之效
假設我定閱了一個字~叫「正常」好了~
當文章中有~他長的很正,常常會吸引別人的目光
結果…這篇文章 就被列在RSS中~
真叫人哭笑不得~
自然語法~果然是一門很深的學問
弄了一天~RSS機器人弄完囉!
得到幾個結論
1.crul遇到網址前的空白~不會自行處理~會開啟失敗
2.mysql遇到資料前的空白~會造成操作失敗
3.yahoo的rss真的是一點誠意也沒有~就給個標題和連結
4.yahoo真的是一家有錢的公司~兩年前的新聞連同圖片一樣存在
5.google的快訊~真的~很遜~
6.Yahoo新聞~呈現的格式~相當的工整
7.Gmail真是個好用的東西~
I worte a php function to split the xml return of yahoo search api.
It will return a arry, and it’s easy use for me.
8 elements a set.The elements as below.
1.Title
2.Summary
3.Click URL(will auto redirect)
4.The site URL
5.Modify Date time(unit is second since 1970/1/1)
6.Format
7.Cache URL
8.Size
搜尋出來的結果~和在台灣搜尋出來的結果不同
不知道 在這個搜尋結果 和台灣的結果有什麼明顯的差異
另外…修改日期是秒數~拿來操作的要作轉換
但是 我不知道 實用性在哪
檔案格式[any (default), html, msword, pdf, ppt, rss, txt, xls]
可能是網頁~也有可能是doc文字檔
參數蠻多可以玩的~
可以參考原廠文件~在這裡
有問題的地方~查詢區域~沒有台灣~有泰國
代碼在這~真不知道台灣Yahoo在幹嘛
話說~我不太相信Yahoo的站長工具所統計出來的資料~
所以咧…就給他想到Google的統計功能
結果~Code怎麼貼都貼不上
可能判定為有問題的jacascript(安全理由)
老實說~功能有點遜~是不是安全~Yahoo應該知道
要不然~就是去申觀布落的統計貼紙~
不過~分析報表~更是洋春
今天早上收到信~
我在地圖日記的帳號被停權了
只能說~他們家的API寫的還不錯
當然~我也沒有拼命的操他
之前~用無線網路操地圖
結果~我的IP就被封了 Read more
A full working sample client, containing all the sample code shown in this document, is available in the Zend Framework SVN repository. The sample is located at /framework/trunk/demos/Zend/Gdata/Blogger.php. The sample contains all the functions explained in this document. It can be run only from the command line:
php Blogger.php -- --user=[email_address] --pass=[password]
Before running this sample or developing your own code using the the Zend Framework, you may need to set the include_path and load the appropriate classes. The include path can be set either using a php.ini setting or using the set_include_path method. This code requests access to the core Zend_Gdata class, the Zend_Gdata_Query class, and the authentication class Zend_Gdata_ClientLogin.
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_Query');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
什麼~只能在指令列上執行API
我的老天爺啊~現在是什麼時代了
不是在講雲端技術嗎~
又不是所有的人都有Linux環境
我想在XAMPP中測這個API卻怎麼也跑不起來
真是無解~原本還想說自己來寫個API來貼文章
目前看來....只好回去用Zoundry慢慢貼囉!
說了N次了~AnHosting的平台真的很不錯
第一年是貴了點之外
第二年之後~價格差不多
話說我有另外兩個站分另hosting在Startlogic及IPower
SEO中~關鍵字自然越多越好
我就把腦筋動到標題上去了~
wordpress的標題可以導入在固定連接中
結果如下圖

如果在IPower或是StartLogic啟動相同的Function
好笑了~Internal 500錯誤 Orz 一個相哭的感覺
無奈加上無力

所以說~以後~再要申請Hosting空間~
AnHosting是我不二的選擇
(速度快~Function多~Support好)