How to install request/beatifulsoup4
1. Requests 網路資源(URLs)擷取套件 2. BeautifulSoup4 HTML剖析套件
https://bootstrap.pypa.io/get-pip.py
請到該網站下載pip.py,並另存新檔到電腦中,之後雙擊打開
pip為python的套件管理工具
(py -m pip) 輸入後成功看到相關說明
(py -m pip install requests)
(py -m pip install beautifulsoup4)
如果在cmd找不到python,直接到python安裝路徑下找到python.exe
雙擊打開後,輸入import requests 來引入request 模組
還有輸入from bs4 import BeautilfulSoup
若輸入後都沒有出現任何錯誤代表成功~!
留言
張貼留言