blob: d9677e73c4a9f8cf9d08751b5759605e605cb665 (
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("#mw-content-text a[title]")
print(element)
for i in element:
if(i[title])
|