第五天
每快過一周的時候,都需要總結了,於老大也是這樣告誡小帥帥的,每周周末前訂好你下周的工作,並提供這周的總結給於老大。
主角是個程序員,一切都圍繞小帥帥為中心開展這個項目為向導。
小帥帥 熱衷於 技術,對技術的渴望要求是比較高的,他前期的技術是不咋地,但是他有很多優點,這些優點在後續的文章中會體現。
於老大 項目總監 ,他更傾向與培育人,所以他的溝通技巧是不一樣的。
王總監,說出的話氣勢就是不一樣,又能拉近關系,又能鼓勵你賣命,還讓你心甘情願。
在這裡面的角色,每個人的角色不一樣,他們的溝通技巧都不一樣,程序員在這裡面有可能學到的是技術,項目經理有可能是學到的溝通技巧、待人處事以及如何培養值得信任的人。
言歸正傳:
小帥帥修煉了一個晚上,冒著黑眼圈,無精打采的回到公司,正好碰到於老大,興奮的說到:於老大,昨天你給的那個PHP Simple HTML DOM Parser,我看了一個晚上終於弄明白了,等下把代碼發給你,幫忙看看有沒有問題?
於老大看著黑眼圈的小帥帥說到:你熬夜了,今天批你個假,好好休息,精神好了戰斗力才會更強,下次注意下休息,別影響了第二天的工作。
小帥帥也覺得這樣工作也不太好,就對於老大說: 謝謝於老大,下次會注意的,我等下把代碼發給你,就回去休息。
於老大也不好再說什麼了,只好答應到:好的。
淘寶裡面關鍵詞的HTML:
<div class="search-hots"><a href="//s.taobao.com/search?spm=1.7274553.1997520241.1.z5UFkc&q=%B4%F3%C2%EB%C5%AE%D7%B0&refpid=420460_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.1">大碼女裝</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.2.z5UFkc&q=%C5%AE%D1%A9%B7%C4%C9%C0&refpid=420461_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.2">雪紡衫</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.3.z5UFkc&q=%C1%AC%D2%C2%C8%B9&refpid=420462_1006&source=tbsy&style=grid&tab=all" class="h" data-spm-anchor-id="1.7274553.1997520241.3">連衣裙</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.4.z5UFkc&q=%C5%AE%C1%B9%D0%AC&refpid=420463_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.4">女士涼鞋</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.5.z5UFkc&q=%C5%AE%B0%FC&refpid=420464_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.5">時尚女包</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.6.z5UFkc&q=%C5%AEt%D0%F4&refpid=420465_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.6">女士T恤</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.7.z5UFkc&q=%C4%D0t%D0%F4&refpid=420466_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.7">男士T恤</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.8.z5UFkc&q=%B7%C0%C9%B9%D2%C2&refpid=420467_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.8">防曬衣</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.9.z5UFkc&q=%C7%E9%C2%C2%D7%B0&refpid=430144_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.9">情侶裝</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.10.z5UFkc&q=%B6%CC%BF%E3&refpid=430145_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.10">短褲</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.11.z5UFkc&q=%D3%BE%D2%C2&refpid=430146_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.11">泳衣</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.12.z5UFkc&q=%C4%D0%D0%AC&refpid=430147_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.12">新款男鞋</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.13.z5UFkc&q=%C1%B9%CF%AF&refpid=430148_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.13">涼席</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.14.z5UFkc&q=%B3%A4%C8%B9&refpid=430149_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.14">長裙</a> <a href="//s.taobao.com/search?spm=1.7274553.1997520241.15.z5UFkc&q=%CD%CF%D0%AC&refpid=430150_1006&source=tbsy&style=grid&tab=all" data-spm-anchor-id="1.7274553.1997520241.15">拖鞋</a> <a class="more more-with-border" href="http://top.taobao.com/index.php?spm=1.7274553.1997520241.16.z5UFkc&from=tbsy" data-spm-anchor-id="1.7274553.1997520241.16">更多<i><em></em><span></span></i></a> </div>
小帥帥的代碼如下:
<?php $curl = new ExtendedCurl(); $content = $curl->get("http://www.taobao.com"); if($curl->hasError()){ throw new Exception($curl->getError(), $curl->getHttpCode()); } $html = str_get_html($content); foreach($html->find(".search-hots a[class!=more]") as $ele){ $keywords[] = $ele->innertext; } foreach($keywords as $keyword){ //save $keyword to database .... }
小帥帥交了代碼之後就回去安心的休息去了,睡著的時候做了個夢,夢裡的內容少兒不宜,跳過....
就這樣,小帥帥驚險的一周過了.....
現在 百度推廣有精確、短語、廣泛三種匹配方式,,一般來說黃金組合匹配方式是:廣泛匹配+搜索詞報告+否定關鍵詞。流量來說的話就是 廣泛>短語>精確啦,可以根據你們呢的實際情況進行設置!
如果要精確匹配,需要ABC都帶引號。