Python
1import requests 2from bs4 import BeautifulSoup 3yahoo_tech_news_xml = requests.get('http://news.yahoo.co.jp/pickup/computer/rss.xml') 4soup = BeautifulSoup(yahoo_tech_news_xml.text, "html.parser") 5type(soup) 6soup.findAll('item')
このコードをVisual Studioで入れても何も結果が出ません。
しかしⅠ行ずつコマンドプロンプトで処理するとちゃんと処理されます。
なぜVisual Studioでは処理がされないんでしょうか?
超初歩的な質問ですいません。
pip install beautifulsoup4 はやってます。
追記
Visual Studioで他のpythonのコードはうまく処理されています。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/10/15 11:23
2016/10/15 11:25