Code
紀錄一下批量抓取 Google 搜索成效裡的貫穿連接的方式。
若是還沒有安裝以下,要先下載安裝:
網站架設
- pip install beautifulsoup4
- pip install google
複製代碼 網站架設文章出處
- from googlesearch import search
- query = "cambridge"
- for j in search(query, stop=5, pause=2.0):
- print(j)
-
複製代碼
Result


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

接下來設定排程
網站架設
網站架設