diff options
author | jbjjbjjbj <julianteule@gmail.com> | 2016-12-14 13:18:11 +0100 |
---|---|---|
committer | jbjjbjjbj <julianteule@gmail.com> | 2016-12-14 13:18:11 +0100 |
commit | 3884b3922f555ce39a842aaec32c4a0d57107068 (patch) | |
tree | 37314f1752d053ed94aa1708a5b10197489aae10 | |
parent | 497d3571638db8edbc1552249128e9744c9e2b0d (diff) |
Added script
-rw-r--r-- | Scripts/wiki2P.py | 16 |
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) |