summaryrefslogtreecommitdiff
path: root/Scripts/wiki2P.py.save
diff options
context:
space:
mode:
authorJulian <julianteule@gmail.com>2017-01-24 18:46:34 +0100
committerJulian <julianteule@gmail.com>2017-01-24 18:46:34 +0100
commitc8eb10a6e5a9be31ac703cf9efce6f40817760da (patch)
tree62bc8a0a46e3f908ef840d867833276ee56416a2 /Scripts/wiki2P.py.save
parent076f4801a51216d1d5f4aec9ccfbcf77382fea87 (diff)
Added more scripts
Diffstat (limited to 'Scripts/wiki2P.py.save')
-rwxr-xr-xScripts/wiki2P.py.save16
1 files changed, 16 insertions, 0 deletions
diff --git a/Scripts/wiki2P.py.save b/Scripts/wiki2P.py.save
new file mode 100755
index 0000000..d9677e7
--- /dev/null
+++ b/Scripts/wiki2P.py.save
@@ -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("#mw-content-text a[title]")
+
+print(element)
+
+
+for i in element:
+ if(i[title])