summaryrefslogtreecommitdiff
path: root/Scripts/wiki2P.py
blob: f0ded017c1d7606f876870bcca5c82d6cca40b9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)