diff options
author | Julian <Julianteule@gmail.com> | 2017-02-01 10:38:02 +0100 |
---|---|---|
committer | Julian <Julianteule@gmail.com> | 2017-02-01 10:38:02 +0100 |
commit | 665aaa60c60e7cfb556b629edd74075c993d5bdf (patch) | |
tree | befdcc80ae71176184e8c1add1aef4afe61691cf /Scripts/wiki2P.py.save | |
parent | 2eb28948556f464980cf4296c09d044c21bc84de (diff) | |
parent | ebed9571e58a560bca3d38c2a8ee644866e156ae (diff) |
coolsad
Diffstat (limited to 'Scripts/wiki2P.py.save')
-rwxr-xr-x | Scripts/wiki2P.py.save | 16 |
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]) |