我添加了一個運行良好的腳本包。
運行 Python 腳本後,在哪裡可以看到腳本的輸出?我將螢幕分開,我看到的只是以下內容:
這是腳本:
from bs4 import BeautifulSoup
import urllib
url = urllib.urlopen('http://meinparlament.diepresse.com/')
content = url.read()
soup = BeautifulSoup(content, 'lxml')
table = soup.findAll('div',attrs={"class":"content-question"})
for x in table:
print x.find('p').text
# Another way to retrieve tables:
# table = soup.select('div[class="content-question"]')
我怎麼能安排 Atom 以便我可以看到
- 劇本
- 命令列
- Python 腳本的輸出?