1.安裝指導網頁html
http://www.javashuo.com/article/p-zwhnihtb-cd.htmlpython
2.導入jenkins模塊報錯,解決網頁。git
https://github.com/certbot/certbot/issues/5104github
pip install requests urllib3 pyOpenSSL --force --upgradescrapy
3.更新 requests等模塊遇到 gcc編譯命令找不到的解決方法。ui
https://github.com/scrapy/scrapy/issues/2115url
for scrapy with Python 3, you'll needspa
sudo apt-get install python3 python-dev python3-dev \ build-essential libssl-dev libffi-dev \ libxml2-dev libxslt1-dev zlib1g-dev \ python-pip
with Python 2, you'll needcode
sudo apt-get install python-dev \ build-essential libssl-dev libffi-dev \ libxml2-dev libxslt1-dev zlib1g-dev \ python-pip優勢:本身封裝了jenkins的HTTP API。不用咱們本身動手實現了。缺點:從官方文檔上看。https://pypi.org/project/python-jenkins/ 貌似真的只是對HTTP API 進行了封裝。 若是想要 中止一個正在編譯的JOB,好像作不到。