Skip to content

Commit 67cf612

Browse files
committed
again fixation
1 parent 1ff1999 commit 67cf612

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎0x16-api_advanced/100-count.py‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,8 @@ def count_words(subreddit, word_list, histogram=[], n=0, after=None):
3939
'''
4040
api_headers = {
4141
'Accept': 'application/json',
42-
'User-Agent': ' '.join([
43-
'Mozilla/5.0 (Windows NT 10.0; Win64; x64)',
44-
'AppleWebKit/537.36 (KHTML, like Gecko)',
45-
'Chrome/97.0.4692.71',
46-
'Safari/537.36',
47-
'Edg/97.0.1072.62'
48-
])
49-
}
42+
"User-Agent": "linux:0x16.api.advanced"
43+
}
5044
sort = 'hot'
5145
limit = 30
5246
res = requests.get(

0 commit comments

Comments
 (0)