Browse Source

Update functions.py

master
Unbewohnte 4 years ago committed by GitHub
parent
commit
92e53be286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      functions.py

9
functions.py

@ -12,9 +12,6 @@ def reddit_parse_hot(reddit, sub , many):
hot_posts = what_to_parse.hot(limit = many)
for post in hot_posts:
post_url = post.url
print(post_url)
req = request.Request(post_url, headers = headers)
url_opn = request.urlopen(req)
url_opn_list.append(post_url)
return url_opn_list
@ -23,9 +20,6 @@ def reddit_parse_time(reddit, sub, many):
time_posts = what_to_parse.new(limit = many)
for post in time_posts:
post_url = post.url
print(post_url)
req = request.Request(post_url, headers = headers)
url_opn = request.urlopen(req)
url_opn_list.append(post_url)
return url_opn_list
@ -35,8 +29,5 @@ def random_subreddit(reddit,many):
hot_posts = what_to_parse.hot(limit = many)
for post in hot_posts:
post_url = post.url
print(post_url)
req = request.Request(post_url, headers = headers)
url_opn = request.urlopen(req)
url_opn_list.append(post_url)
return url_opn_list, what_to_parse

Loading…
Cancel
Save