-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStackOverFlowuTakipEtmek.py
38 lines (28 loc) · 1.08 KB
/
StackOverFlowuTakipEtmek.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""
) ( (
( /( )\ ) )\ ( ) ) (
)\()) ((_) ( /( ((_) )\ ) ( /( ( ( /( )(
((_)\ _ )(_)) _ (()/( )(_)) )\ )(_)) (()\
| |(_) | | ((_)_ | | )(_)) ((_)_ ((_) ((_)_ ((_)
| '_ \ | | / _` | | | | || | / _` | (_-< / _` | | '_|
|_.__/ |_| \__,_| |_| \_, | \__,_| /__/ \__,_| |_|
|__/
"""
import requests
from bs4 import BeautifulSoup
def get_html_from_web(zipcode):
url = 'https://stackoverflow.com/questions/tagged/{}'.format(zipcode)
response = requests.get(url)
totalQuestionOverview = BeautifulSoup(response.content, "html.parser")
findLinks = totalQuestionOverview.find("div", {"id": "mainbar"})
#print(findLinks)
findLinks = findLinks.find_all("a", {'class':"question-hyperlink"})
#print(findLinks)
for i in findLinks:
print(i.text)
print("---"*15)
#datascience yok :
#deeplearnıng yok :)
tag_listem = ["python"]
for i in tag_listem:
get_html_from_web(i)