summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbjjbjjbj <julianteule@gmail.com>2016-12-14 13:18:11 +0100
committerjbjjbjjbj <julianteule@gmail.com>2016-12-14 13:18:11 +0100
commit3884b3922f555ce39a842aaec32c4a0d57107068 (patch)
tree37314f1752d053ed94aa1708a5b10197489aae10
parent497d3571638db8edbc1552249128e9744c9e2b0d (diff)
Added script
-rw-r--r--Scripts/wiki2P.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/Scripts/wiki2P.py b/Scripts/wiki2P.py
new file mode 100644
index 0000000..f0ded01
--- /dev/null
+++ b/Scripts/wiki2P.py
@@ -0,0 +1,16 @@
+import requests, bs4
+
+#res = requests.get("https://en.wikipedia.org/wiki/Special:Random")
+res = requests.get("https://en.wikipedia.org/wiki/Study")
+
+
+soup = bs4.BeautifulSoup(res.text)
+
+
+element = soup.select("p > a")
+
+print(element[0])
+
+#while( soup.select(".firstHeading")[0] != "Philosophy"):
+#
+# print(soup.select(".firstHeading")[0].text)