close


Code

 

 

紀錄一下批量抓取 Google 搜索成效裡的貫穿連接的方式。


若是還沒有安裝以下,要先下載安裝:
 

網站架設
  1. pip install beautifulsoup4
  2. pip install google
複製代碼
網站架設

文章出處

 

  1. from googlesearch import search
  2. query = "cambridge"
  3. for j in search(query, stop=5, pause=2.0):
  4.         print(j)
  5.  
複製代碼


Result
【Python 爬蟲】抓取 Google 搜索效果的連結【Python 爬蟲】抓取 Google 搜索效果的連結


 

  1. /usr/bin/python3 /home/xxx/public_html/搜索引擎優化_crawler.py > /dev/null 2>&2

【Python 爬蟲】抓取 Google 搜索效果的連結

接下來設定排程

網站架設 

網站架設
arrow
arrow
    文章標籤
    網站架設
    全站熱搜
    創作者介紹
    創作者 juliox56aaj 的頭像
    juliox56aaj

    新竹網站架設

    juliox56aaj 發表在 痞客邦 留言(0) 人氣()