質問編集履歴

1

py

2016/02/03 02:29

投稿

reotantan
reotantan

スコア295

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,37 @@
7
7
  どうしたらpythonで利用できるでしょうか?
8
8
 
9
9
  助言よろしくお願いします
10
+
11
+
12
+
13
+ 下のコードで利用するつもりです
14
+
15
+ ```ここに言語を入力
16
+
17
+ コード
18
+
19
+ import urllib
20
+
21
+ from BeautifulSoup import *
22
+
23
+ url=input('Enter -')
24
+
25
+
26
+
27
+ html=urllib.urlopen(url).read()
28
+
29
+ soup=BeautifulSoup(html)
30
+
31
+
32
+
33
+ tags=soup('a')
34
+
35
+
36
+
37
+ for tag in tags:
38
+
39
+ print (tag.get('href',NONE))
40
+
41
+
42
+
43
+ ```